[PATCH 2/2] Shorten list of messages to be deleted in UI output
Sebastian Spaeth
Sebastian at SSpaeth.de
Mon Aug 22 11:21:12 BST 2011
Rather than output the full list of messages, coalesce it into number
ranges wherever possible.
Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
offlineimap/ui/UIBase.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/offlineimap/ui/UIBase.py b/offlineimap/ui/UIBase.py
index 16e10bc..f5dca57 100644
--- a/offlineimap/ui/UIBase.py
+++ b/offlineimap/ui/UIBase.py
@@ -302,7 +302,7 @@ class UIBase:
ds = s.folderlist(destlist)
s._msg("Deleting %d messages (%s) in %s" % \
(len(uidlist),
- ", ".join([str(u) for u in uidlist]),
+ offlineimap.imaputil.uid_sequence(uidlist),
ds))
def addingflags(s, uidlist, flags, dest):
--
1.7.4.1
More information about the OfflineIMAP-project
mailing list