Ability to enable the update mode via the config file
[imap-fix-internaldate] / README
CommitLineData
d927792b
TJ
1Small tool to fix the IMAP internaldate
2in case it's too much off compared to the last date
3stored in the received lines.
4
5F.e. some IMAP clients tend to reset the imap internaldate
6when you move a message between folders.
7
8Features:
9- Configurable tolerance
10- Test mode: Show only what would be done
11- Statistics: How many messages it would modify per user / folder
12- Log file with all actions
13- Caching
14
e2c5a802 15Note: Only the -first- received line is interpreted.
002533ab
TJ
16This was the lastest date on our server. We don't interpret
17all received lines because spam messages tend to contain bogus dates.
91aca3c4
TJ
18
19If no recieved line is found, you can enable a fallback
20mechanism to the "Date:" header in the configuration file.
21This is useful for correcting "Sent" items.
002533ab 22
e2c5a802
TJ
23
24By default the script runs in test mode and does not modify any messages.
25See the output of the "--help" command line switch
26how to activate the real update mode.
27
002533ab
TJ
28Prerequisites:
29Python version 3 or later
30
8a36cfd2
TJ
31 Linux: Should be part of any modern linux distribution
32 Windows: Get it from http://www.python.org/getit/windows/
33
97bd6bea
PD
34Necessary files:
35- userdata.csv: Contains information necessary for the user session with format:
1007fa6d
TJ
36 username,password
37 testuser1,testpass1
38 testuser2,testpass2
39
40 Note: The first line are the column names and gets ignored.
002533ab 41
97bd6bea 42Produced files:
1007fa6d
TJ
43- fix_imap_internaldate.cfg: Configuration of the script - created on first run.
44- fix_imap_internaldate.log: Log file. Will be truncated on script invocation.
91aca3c4 45- statistics.txt: Final report on statistics about detected date conflicts and missing dates.
1007fa6d 46- message_cache.dat: Cache file used for performance improvements
97bd6bea 47
002533ab 48For more information please contact opensource@intra2net.com