Merge branch 'master' into next

This commit is contained in:
Sebastian Spaeth 2012-01-07 22:04:25 +01:00
commit 6c1d80f727
2 changed files with 11 additions and 5 deletions

View File

@ -16,6 +16,8 @@ New Features
Changes
-------
* Add folderfilter information to the --info output
Bug Fixes
---------

View File

@ -386,12 +386,16 @@ class UIBase(object):
self._msg("nametrans= %s\n" % nametrans)
folders = repository.getfolders()
foldernames = [(f.name, f.getvisiblename()) for f in folders]
foldernames = [(f.name, f.getvisiblename(), f.sync_this) \
for f in folders]
folders = []
for name, visiblename in foldernames:
if name == visiblename: folders.append(name)
else: folders.append("%s -> %s" % (name, visiblename))
self._msg("Folderlist: %s\n" % str(folders))
for name, visiblename, sync_this in foldernames:
syncstr = "" if sync_this else " (disabled)"
if name == visiblename: folders.append("%s%s" % (name,
syncstr))
else: folders.append("%s -> %s%s" % (name,
visiblename, syncstr))
self._msg("Folderlist:\n %s\n" % "\n ".join(folders))
finally:
if conn: #release any existing IMAP connection
repository.imapserver.close()