docker-offlineimap/offlineimap/folder
Sebastian Spaeth c70a621709 Limit msg body length in debug output
We were outputting full message bodies to the debug log (often stderr),
and then again (as they go over the imaplib2 wire, imaplib logs
everything too). Not only is quite a privacy issue when sending in debug
logs but it can also freeze a console for quite some time. Plus it
bloats debug logs A LOT.

Only output the first and last 100 bytes of each message body to the
debug log (we still get the full body from imaplib2 logging). This
limits privacy issues when handing the log to someone else, but usually
still contains all the interesting bits that we want to see in a log.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-05-09 20:58:46 +02:00
..
__init__.py Add Gmail IMAP special support. 2008-01-03 04:56:55 +01:00
Base.py Experimental LocalStatus stored in SQLite database 2011-05-07 13:29:11 +02:00
Gmail.py Remove some unneeded imports 2011-03-14 19:51:52 +01:00
IMAP.py Limit msg body length in debug output 2011-05-09 20:58:46 +02:00
LocalStatus.py Use self.doautosave rather than self.dofsync 2011-05-07 13:29:11 +02:00
LocalStatusSQLite.py LocalStatusSQLite: Fix bug when deleting messages 2011-05-08 14:34:55 +02:00
Maildir.py Prettify and use new uidexists() helper function 2011-05-07 13:50:22 +02:00
UIDMaps.py Merge branch 'ss/corrupted-uidmap-file' into next 2011-05-02 19:09:52 +02:00