oc: return last modified messages when sorted by PidMessageTagDeliveryTime
This change is required as oxcfxics is asking for sorting using this property. We fake this property on GCS folders (Tasks, Calendar, Contacts) using c_lastmodified column.pull/79/head^2
parent
bb0221c763
commit
1ee47b1ee2
|
@ -182,6 +182,9 @@ static Class MAPIStoreCalendarMessageK = Nil;
|
||||||
forKey: MAPIPropertyKey (PR_CREATION_TIME)];
|
forKey: MAPIPropertyKey (PR_CREATION_TIME)];
|
||||||
[knownProperties setObject: @"c_uid"
|
[knownProperties setObject: @"c_uid"
|
||||||
forKey: MAPIPropertyKey (PR_OWNER_APPT_ID)];
|
forKey: MAPIPropertyKey (PR_OWNER_APPT_ID)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
|
@ -220,6 +220,9 @@ static Class MAPIStoreContactsMessageK, NGMailAddressK, NSDataK, NSStringK;
|
||||||
forKey: MAPIPropertyKey (PidTagSubject)];
|
forKey: MAPIPropertyKey (PidTagSubject)];
|
||||||
[knownProperties setObject: @"c_cn"
|
[knownProperties setObject: @"c_cn"
|
||||||
forKey: MAPIPropertyKey (PidTagNormalizedSubject)];
|
forKey: MAPIPropertyKey (PidTagNormalizedSubject)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
|
@ -157,6 +157,9 @@ static Class MAPIStoreTasksMessageK = Nil;
|
||||||
forKey: MAPIPropertyKey (PidLidTaskDueDate)];
|
forKey: MAPIPropertyKey (PidLidTaskDueDate)];
|
||||||
[knownProperties setObject: @"c_creationdate"
|
[knownProperties setObject: @"c_creationdate"
|
||||||
forKey: MAPIPropertyKey (PidLidTaskOrdinal)];
|
forKey: MAPIPropertyKey (PidLidTaskOrdinal)];
|
||||||
|
/* Use by oxcfxics to sort the latest first */
|
||||||
|
[knownProperties setObject: @"c_lastmodified"
|
||||||
|
forKey: MAPIPropertyKey (PidTagMessageDeliveryTime)];
|
||||||
}
|
}
|
||||||
|
|
||||||
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
return [knownProperties objectForKey: MAPIPropertyKey (property)];
|
||||||
|
|
Loading…
Reference in New Issue