Fixed a potential timing issue with Dovecot when getting the modseq

pull/10/head
Ludovic Marcotte 2013-04-10 09:56:23 -04:00
parent eec8c07d4f
commit 1b983ef691
1 changed files with 4 additions and 1 deletions

View File

@ -943,7 +943,10 @@ MakeMessageBody (NSDictionary *mailProperties, NSDictionary *attachmentParts, NS
[mapping registerURL: [self url] withID: mid];
/* synchronise the cache and update the change key with the one provided
by the client */
by the client. Before doing this, lets issue a noop because of timing
issues with Dovecot. */
[client noop];
[(MAPIStoreMailFolder *) container synchroniseCache];
changeKey = [properties objectForKey: MAPIPropertyKey (PR_CHANGE_KEY)];
if (changeKey)