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 <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-09-07 18:21:46 +02:00 committed by Nicolas Sebrecht
parent 26721c60d4
commit 1b99c019e5

View File

@ -159,7 +159,7 @@ class IMAPFolder(BaseFolder):
OfflineImapError.ERROR.FOLDER) OfflineImapError.ERROR.FOLDER)
# Result UIDs are seperated by space, coalesce into ranges # 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: if not msgsToFetch:
return # No messages to sync return # No messages to sync