mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-03 04:18:51 +00:00
Do not save IPM.DistList messages
This commit is contained in:
@@ -1024,10 +1024,12 @@ fromProperties: (NSDictionary *) attachmentProps
|
||||
|| (!isNew && [roles containsObject: SOGoRole_ObjectEditor]));
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
- (void) save:(TALLOC_CTX *) memCtx
|
||||
- (void) saveDistList:(TALLOC_CTX *) memCtx
|
||||
{
|
||||
[self warnWithFormat: @"IPM.DistList messages are ignored"];
|
||||
}
|
||||
|
||||
- (void) saveContact:(TALLOC_CTX *) memCtx
|
||||
{
|
||||
NSArray *elements, *units;
|
||||
CardElement *element;
|
||||
@@ -1373,4 +1375,14 @@ fromProperties: (NSDictionary *) attachmentProps
|
||||
[self updateVersions];
|
||||
}
|
||||
|
||||
- (void) save:(TALLOC_CTX *) memCtx
|
||||
{
|
||||
NSString *messageClass = [properties objectForKey: MAPIPropertyKey(PR_MESSAGE_CLASS_UNICODE)];
|
||||
if ([messageClass isEqualToString: @"IPM.DistList"])
|
||||
[self saveDistList: memCtx];
|
||||
else
|
||||
[self saveContact: memCtx];
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user