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:
parent
26721c60d4
commit
1b99c019e5
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user