diff --git a/ActiveSync/SOGoMailObject+ActiveSync.m b/ActiveSync/SOGoMailObject+ActiveSync.m index d8aa6e0f9..1d74830c6 100644 --- a/ActiveSync/SOGoMailObject+ActiveSync.m +++ b/ActiveSync/SOGoMailObject+ActiveSync.m @@ -600,7 +600,11 @@ struct GlobalObjectId { // Importance v = 0x1; - p = [[self mailHeaders] objectForKey: @"x-priority"]; + value = [[self mailHeaders] objectForKey: @"x-priority"]; + if ([value isKindOfClass: [NSArray class]]) + p = [value lastObject]; + else + p = value; if (p) { @@ -611,7 +615,12 @@ struct GlobalObjectId { } else { - p = [[self mailHeaders] objectForKey: @"importance"]; + value = [[self mailHeaders] objectForKey: @"importance"]; + if ([value isKindOfClass: [NSArray class]]) + p = [value lastObject]; + else + p = value; + if ([p hasPrefix: @"High"]) v = 0x2; else if ([p hasPrefix: @"Low"]) v = 0x0; } diff --git a/NEWS b/NEWS index b9b1c6661..2a552a6f7 100644 --- a/NEWS +++ b/NEWS @@ -8,8 +8,9 @@ Enhancements Bug fixes - now keep the BodyPreference for future EAS use and default to MIME if none set (#3146) - EAS reply fix when message/rfc822 parts are included in the original mail (#3153) - - fix yet an other potential crash during freebusy lookups during timezone changes + - fixed yet an other potential crash during freebusy lookups during timezone changes - fix display of freebusy information in event attendees editor during timezone changes + - fixed a potential EAS error with multiple email priority flags 2.2.17a (2015-03-15) --------------------