[PATCH 1/2] Introduce an *empty* debug type
Sebastian Spaeth
Sebastian at SSpaeth.de
Sun May 1 19:18:28 BST 2011
This debug type will always be enabled whenever any debugging is enables
and it outputs debug messages that cannot be categorized among any of
imap, maildir (e.g. things that concern the sync logic).
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
offlineimap/init.py | 3 ++-
offlineimap/ui/UIBase.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/offlineimap/init.py b/offlineimap/init.py
index 296b84b..866c950 100644
--- a/offlineimap/init.py
+++ b/offlineimap/init.py
@@ -221,7 +221,8 @@ class OfflineImap:
ui._msg("Debug mode: Forcing to singlethreaded.")
options.singlethreaded = True
- for type in options.debugtype.split(','):
+ debugtypes = options.debugtype.split(',') + ['']
+ for type in debugtypes:
type = type.strip()
ui.add_debug(type)
if type.lower() == 'imap':
diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py
index 02593e6..6eb1398 100644
--- a/offlineimap/ui/UIBase.py
+++ b/offlineimap/ui/UIBase.py
@@ -25,7 +25,8 @@ from StringIO import StringIO
from Queue import Empty
import offlineimap
-debugtypes = {'imap': 'IMAP protocol debugging',
+debugtypes = {'':'Other offlineimap related sync messages',
+ 'imap': 'IMAP protocol debugging',
'maildir': 'Maildir repository debugging',
'thread': 'Threading debugging'}
--
1.7.4.1
More information about the OfflineIMAP-project
mailing list