Created
January 17, 2015 17:26
-
-
Save MarkusH/15d06d269087268d9b48 to your computer and use it in GitHub Desktop.
Recover Thunderbird mbox mails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: import mailbox | |
In [2]: mbox = mailbox.mbox('/tmp/mbox/INBOX') | |
In [3]: maildir = mailbox.Maildir('/tmp/maildir/') | |
In [4]: for msg in mbox.itervalues(): | |
...: maildir.add(msg) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment