IMAP do not use single quotes on fetch
The IMAP command is: C: A654 FETCH 2:4 (FLAGS BODY[HEADER.FIELDS (DATE FROM)]) not C: A654 FETCH '2:4' (FLAGS BODY[HEADER.FIELDS (DATE FROM)]) The single quotes must be removed.
This commit is contained in:
parent
bb5b1f2dcf
commit
1379c32c5a
@ -278,7 +278,7 @@ class IMAPFolder(BaseFolder):
|
|||||||
|
|
||||||
# Get the flags and UIDs for these. single-quotes prevent
|
# Get the flags and UIDs for these. single-quotes prevent
|
||||||
# imaplib2 from quoting the sequence.
|
# imaplib2 from quoting the sequence.
|
||||||
fetch_msg = "'%s'"% msgsToFetch
|
fetch_msg = "%s"% msgsToFetch
|
||||||
self.ui.debug('imap', "calling imaplib2 fetch command: %s %s"%
|
self.ui.debug('imap', "calling imaplib2 fetch command: %s %s"%
|
||||||
(fetch_msg, '(FLAGS UID INTERNALDATE)'))
|
(fetch_msg, '(FLAGS UID INTERNALDATE)'))
|
||||||
res_type, response = imapobj.fetch(
|
res_type, response = imapobj.fetch(
|
||||||
|
Loading…
Reference in New Issue
Block a user