docker-offlineimap/offlineimap
Sebastian Spaeth efcce01d64 Declutter TTY output
Previously we would output:

Folder sync sspaeth.de[INBOX.INBOX201004]:
 Syncing INBOX.INBOX201004: IMAP -> Maildir
Folder sync sspaeth.de[INBOX.INBOX201006]:
 Syncing INBOX.INBOX201006: IMAP -> Maildir
Folder sync sspaeth.de[INBOX.INBOX201009]:
 Syncing INBOX.INBOX201009: IMAP -> Maildir

which is very repetitive and cluttered. By naming the folder sync
threads just according to the account and not the folder, the output
looks much nicer:

Folder sync [sspaeth.de]:
 Syncing INBOX.INBOX201004: IMAP -> Maildir
 Syncing INBOX.INBOX201006: IMAP -> Maildir
 Syncing INBOX.INBOX201009: IMAP -> Maildir

If syncing multiple accounts in parallel, we will still get headers
indicating the account:

Folder sync [sspaeth.de]:
 Syncing INBOX: IMAP -> Maildir
 Syncing INBOX.INBOX201006: IMAP -> Maildir
Folder sync [gmail]:
 Syncing INBOX: IMAP -> Maildir

This is a small fix that makes the output much nicer in my opinion.

Also don't output the thread name if we are in the MainThread, e.g. when
we output the initial offlineimap banner.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
2011-03-10 19:04:57 +01:00
..
folder Use self.ui rather than UIBase.getglobalui() 2011-02-17 19:03:29 +01:00
repository repository/Base.py: Fix regression (UIBase is no more) 2011-03-01 18:36:57 +01:00
ui Declutter TTY output 2011-03-10 19:04:57 +01:00
__init__.py v6.3.2 2011-02-21 12:26:48 +01:00
accounts.py Declutter TTY output 2011-03-10 19:04:57 +01:00
CustomConfig.py Improve CustomConfig documentation 2011-01-20 19:46:01 +01:00
imaplibutil.py fix hang because of infinite loop reading EOF 2011-03-07 21:54:28 +01:00
imapserver.py fix hang because of infinite loop reading EOF 2011-03-07 21:54:28 +01:00
imaputil.py Replace UIBase.getglobalui() with getglobalui() 2011-01-05 19:24:00 +01:00
init.py Make profiling mode really enforce singlethreading 2011-03-03 19:08:49 +01: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 Implement true single-threading 2011-01-14 19:25:11 +01:00
threadutil.py Remove MultiLock implementation 2011-01-25 19:19:14 +01:00