Clear inbox acls and other fixes based on autotest validation
[imap-restore-mail] / README
CommitLineData
20760d94
PD
1Small tool to inject mails via IMAP
2that can be used to restore e-mails from account backup.
3
4This 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
8
9Features:
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
14during restoring are good to be reviewed by the user
15
16Prerequisites:
17Python version 2.7 or later
18
19 Linux: Should be part of any modern linux distribution
20 Windows: Get it from http://www.python.org/getit/windows/
21
22Files 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> ...
25
26Files 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
29automatically removed
30
31For more information please contact opensource@intra2net.com