1 Small tool to inject mails via IMAP
2 that can be used to restore e-mails from account backup.
4 This program relies on the following assumptions:
5 - IMAP hierarchy separator is / (unixhierarysep=yes)
6 - INBOX maps to user/[username]
7 - internal encoding of . etc. as of cyrus 2.2
10 - File to mailbox option for restoring the mail folder hierarchy
11 - Append mode - do not delete any mailboxes and messages while injecting files
12 - Log to file and console with all actions
13 - Output from the main function suggesting how many potential warnings
14 during restoring are good to be reviewed by the user
17 Python version 2.7 or later
19 Linux: Should be part of any modern linux distribution
20 Windows: Get it from http://www.python.org/getit/windows/
22 Files that can be used by the program:
23 - mboxlist.dump: Contains the stored ACL rights for each mailbox with line format:
24 user.<owner>.<mailbox> 0 default <username> <acls> <usr2> <acls2> ...
26 Files that may be produced by the program:
27 - restore_mail_inject.log: Log file. Will be truncated on script invocation.
28 - test_file.dump: Test dump files can be produced during unit testing but are
31 For more information please contact opensource@intra2net.com