Skip to content

Commit

Permalink
fix(mail): support very large HIGHESTMODSEQ values
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Jan 12, 2022
1 parent 368360b commit ecc1dee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions SoObjects/Mailer/SOGoMailFolder.m
Original file line number Diff line number Diff line change
Expand Up @@ -2320,15 +2320,16 @@ - (NSArray *) syncTokenFieldsWithProperties: (NSDictionary *) theProperties
NSDictionary *d;
id fetchResults, sortedResults;

int highestmodseq = 0, i;
int i;
uint64_t highestmodseq = 0;

allTokens = [NSMutableArray array];
pool = [[NSAutoreleasePool alloc] init];

if (![theSyncToken isEqualToString: @"-1"])
{
a = [theSyncToken componentsSeparatedByString: @"-"];
highestmodseq = [[a objectAtIndex: 1] intValue];
highestmodseq = [[a objectAtIndex: 1] longLongValue];
}

// We first make sure QRESYNC is enabled
Expand Down

0 comments on commit ecc1dee

Please sign in to comment.