docker-offlineimap/offlineimap
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
..
folder Limit msg body length in debug output 2011-05-09 20:58:46 +02:00
repository Create LocalStatus or LocalStatusSQLite folders 2011-05-07 13:35:03 +02:00
ui Remove weird SigListener class 2011-05-08 14:25:16 +02:00
__init__.py Add OfflineImapError class 2011-05-05 20:00:07 +02:00
accounts.py Merge branch 'ss/remove-siglistener-class' into next 2011-05-08 14:37:47 +02:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
error.py Add OfflineImapError class 2011-05-05 20:00:07 +02:00
imaplib2.py imaplib2: Bump from 2.20 to 2.22 2011-04-11 19:10:45 +02:00
imaplibutil.py accounts: handle OfflineImapError severity FOLDER 2011-05-08 13:56:04 +02:00
imapserver.py Throw OfflineImapError on DNS error 2011-05-05 20:00:07 +02:00
imaputil.py cleanup import statements and conform to PEP-8 2011-03-14 21:35:33 +01:00
init.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00
localeval.py Update FSF address 2006-08-12 05:15:55 +01:00
mbnames.py Update FSF address 2006-08-12 05:15:55 +01:00
syncmaster.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00
threadutil.py Remove weird SigListener class 2011-05-08 14:25:16 +02:00