[PATCH 2/6] Shorten list of messages to be deleted in UI output

Sebastian Spaeth Sebastian at SSpaeth.de
Mon Aug 15 13:15:55 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 c08d34c..a7319c7 100644
--- a/offlineimap/ui/UIBase.py
+++ b/offlineimap/ui/UIBase.py
@@ -301,7 +301,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