Remove parens for SEARCH command
Patch from Adam Spiers Reported that parens were causing trouble for Groupwise IMAP server
This commit is contained in:
parent
7c86482b72
commit
c0d031e760
@ -158,8 +158,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
# Now find the UID it got.
|
# Now find the UID it got.
|
||||||
headervalue = imapobj._quote(headervalue)
|
headervalue = imapobj._quote(headervalue)
|
||||||
try:
|
try:
|
||||||
matchinguids = imapobj.uid('search', None,
|
matchinguids = imapobj.uid('search', 'HEADER', headername, headervalue)[1][0]
|
||||||
'(HEADER %s %s)' % (headername, headervalue))[1][0]
|
|
||||||
except imapobj.error:
|
except imapobj.error:
|
||||||
# IMAP server doesn't implement search or had a problem.
|
# IMAP server doesn't implement search or had a problem.
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user