From c428ac255337739856833fe96d56fb82ab8df977 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Mon, 30 Mar 2015 09:57:27 -0400 Subject: [PATCH] EAS reply fix when message/rfc822 parts are included in the original mail (#3153) --- ActiveSync/SOGoMailObject+ActiveSync.m | 4 ++++ NEWS | 1 + 2 files changed, 5 insertions(+) diff --git a/ActiveSync/SOGoMailObject+ActiveSync.m b/ActiveSync/SOGoMailObject+ActiveSync.m index 45c865c84..d8aa6e0f9 100644 --- a/ActiveSync/SOGoMailObject+ActiveSync.m +++ b/ActiveSync/SOGoMailObject+ActiveSync.m @@ -224,6 +224,10 @@ struct GlobalObjectId { while ((key = [e nextObject])) { + // don't use body parts from a nested body - e.g. body of type message/rfc822 + if (![key hasPrefix: @"1"]) + continue; + part = [self lookupInfoForBodyPart: key]; type = [part valueForKey: @"type"]; subtype = [part valueForKey: @"subtype"]; diff --git a/NEWS b/NEWS index 7280a512b..2b2149d13 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ 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) 2.2.17a (2015-03-15) --------------------