diff options
-rw-r--r-- | b4/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index b8d3191..5cb5a60 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -2268,6 +2268,8 @@ def get_pi_thread_by_url(t_mbx_url, savefile, nocache=False): if not len(t_mbox): logger.critical('No messages found for that query') return None + # Convert mboxrd to mboxo that python understands + t_mbox = t_mbox.replace(b'\n>>From ', b'\n>From ') with open(savefile, 'wb') as fh: logger.debug('Saving %s', savefile) fh.write(t_mbox) |