From c0d031e7602078972c4d0dc9ca635ecd24b48b9c Mon Sep 17 00:00:00 2001 From: John Goerzen Date: Mon, 1 May 2006 20:40:55 +0100 Subject: [PATCH] Remove parens for SEARCH command Patch from Adam Spiers Reported that parens were causing trouble for Groupwise IMAP server --- offlineimap/folder/IMAP.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/offlineimap/folder/IMAP.py b/offlineimap/folder/IMAP.py index 3ad5b13..d288255 100644 --- a/offlineimap/folder/IMAP.py +++ b/offlineimap/folder/IMAP.py @@ -158,8 +158,7 @@ class IMAPFolder(BaseFolder): # Now find the UID it got. headervalue = imapobj._quote(headervalue) try: - matchinguids = imapobj.uid('search', None, - '(HEADER %s %s)' % (headername, headervalue))[1][0] + matchinguids = imapobj.uid('search', 'HEADER', headername, headervalue)[1][0] except imapobj.error: # IMAP server doesn't implement search or had a problem. return 0