From 1b99c019e53c4d95319ade03f0948657fdc968b8 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 7 Sep 2011 18:21:46 +0200 Subject: [PATCH] Fix handling the search results 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 Signed-off-by: Nicolas Sebrecht --- offlineimap/folder/IMAP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index d860e85..cc04262 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -159,7 +159,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