mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 19:12:44 +00:00
Monotone-Parent: b76df21b12b927a0f3947b610200a0571cb5d9f1
Monotone-Revision: 46ee9065aaede905dab99601d89e7e2056ff0afd Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-09-24T00:13:06 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -296,11 +296,19 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
|
||||
changeKey = [parentFolder changeKeyForMessageWithKey: nameInContainer];
|
||||
if (!changeKey)
|
||||
{
|
||||
[self warnWithFormat: @"attempting to get change key"
|
||||
@" by synchronising folder..."];
|
||||
[(MAPIStoreMailFolder *) container synchroniseCache];
|
||||
[parentFolder synchroniseCache];
|
||||
changeKey = [parentFolder changeKeyForMessageWithKey: nameInContainer];
|
||||
if (changeKey)
|
||||
[self logWithFormat: @"got one"];
|
||||
else
|
||||
{
|
||||
[self errorWithFormat: @"still nothing. We crash!"];
|
||||
abort ();
|
||||
}
|
||||
}
|
||||
if (!changeKey)
|
||||
abort ();
|
||||
*data = [changeKey asBinaryInMemCtx: memCtx];
|
||||
}
|
||||
|
||||
@@ -320,7 +328,20 @@ _compareBodyKeysByPriority (id entry1, id entry2, void *data)
|
||||
changeList = [(MAPIStoreMailFolder *)[self container]
|
||||
predecessorChangeListForMessageWithKey: [self nameInContainer]];
|
||||
if (!changeList)
|
||||
abort ();
|
||||
{
|
||||
[self warnWithFormat: @"attempting to get predecessor change list"
|
||||
@" by synchronising folder..."];
|
||||
[(MAPIStoreMailFolder *) container synchroniseCache];
|
||||
changeList = [(MAPIStoreMailFolder *)[self container]
|
||||
predecessorChangeListForMessageWithKey: [self nameInContainer]];
|
||||
if (changeList)
|
||||
[self logWithFormat: @"got one"];
|
||||
else
|
||||
{
|
||||
[self errorWithFormat: @"still nothing. We crash!"];
|
||||
abort ();
|
||||
}
|
||||
}
|
||||
*data = [changeList asBinaryInMemCtx: memCtx];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user