Fixed the ActiveSync issue marking mails as read when downloading them

This commit is contained in:
Ludovic Marcotte committed 2014-03-28 14:18:48 -04:00
1 parent 6e4f776d4b
commit ba32b95308
5 files changed
+48 -39

No files matched your search

+18
View File
@@ -762,6 +762,16 @@ struct GlobalObjectId {
//
//
//
// Exemple for a message being marked as read:
//
// <Change>
// <ServerId>607</ServerId>
// <ApplicationData>
// <Read xmlns="Email:">1</Read>
// </ApplicationData>
// </Change>
// </Commands>
//
- (void) takeActiveSyncValues: (NSDictionary *) theValues
inContext: (WOContext *) _context
{
@@ -776,6 +786,14 @@ struct GlobalObjectId {
else
[self removeFlags: @"\\Flagged"];
}
if ((o = [theValues objectForKey: @"Read"]))
{
if ([o intValue])
[self addFlags: @"seen"];
else
[self removeFlags: @"seen"];;
}
}
@end