Changed noop by unselect/select.
parent
1b983ef691
commit
33840c71cd
|
@ -943,9 +943,13 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
|
||||||
[mapping registerURL: [self url] withID: mid];
|
[mapping registerURL: [self url] withID: mid];
|
||||||
|
|
||||||
/* synchronise the cache and update the change key with the one provided
|
/* synchronise the cache and update the change key with the one provided
|
||||||
by the client. Before doing this, lets issue a noop because of timing
|
by the client. Before doing this, lets issue a unselect/select combo
|
||||||
issues with Dovecot. */
|
because of timing issues with Dovecot in obtaining the latest modseq.
|
||||||
[client noop];
|
Sometimes, Dovecot doesn't return the newly appended UID if we do
|
||||||
|
a "UID SORT (DATE) UTF-8 (MODSEQ XYZ) (NOT DELETED)" command (where
|
||||||
|
XYZ is the HIGHESTMODSEQ+1) immediately after IMAP APPEND */
|
||||||
|
[client unselect];
|
||||||
|
[client select: folderName];
|
||||||
|
|
||||||
[(MAPIStoreMailFolder *) container synchroniseCache];
|
[(MAPIStoreMailFolder *) container synchroniseCache];
|
||||||
changeKey = [properties objectForKey: MAPIPropertyKey (PR_CHANGE_KEY)];
|
changeKey = [properties objectForKey: MAPIPropertyKey (PR_CHANGE_KEY)];
|
||||||
|
|
Loading…
Reference in New Issue