[PATCH 3/3] Fix handling the search results

Sebastian Spaeth Sebastian at SSpaeth.de
Wed Sep 7 17:21:46 BST 2011


Results are delivered in a 1-element list, and somehow I managed to drop
a [0] in the previous patches. We need to look at the element of course,
or our string splitting will fail horribly. Sorry this somehow slipped
through.

Signed-off-by: Sebastian Spaeth <Sebastian at SSpaeth.de>
---
 offlineimap/folder/IMAP.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py
index 502ac83..ffc66ff 100644
--- a/offlineimap/folder/IMAP.py
+++ b/offlineimap/folder/IMAP.py
@@ -156,7 +156,7 @@ class IMAPFolder(BaseFolder):
                         OfflineImapError.ERROR.FOLDER)
 
                 # Result UIDs are seperated by space, coalesce into ranges
-                msgsToFetch = imaputil.uid_sequence(res_data.split())
+                msgsToFetch = imaputil.uid_sequence(res_data[0].split())
                 if not msgsToFetch:
                     return # No messages to sync
 
-- 
1.7.4.1





More information about the OfflineIMAP-project mailing list