From 6d0e46ef49c51fb31666e3c3da5bd0a746c67d74 Mon Sep 17 00:00:00 2001 From: helge Date: Mon, 21 Feb 2005 01:24:52 +0000 Subject: [PATCH] fetch text/calendar parts as flat content git-svn-id: http://svn.opengroupware.org/SOGo/trunk@597 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/SoObjects/Mailer/ChangeLog | 5 +++++ SOGo/SoObjects/Mailer/SOGoMailObject.m | 11 +++++++++-- SOGo/SoObjects/Mailer/Version | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index 1538e629..7a48020f 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,3 +1,8 @@ +2005-02-21 Helge Hess + + * SOGoMailObject.m: generate proper .ics extension for text/calendar + message parts, fetch text/calendar parts as plain content (v0.9.76) + 2005-02-15 Helge Hess * SOGoMailAccount.m: added 'SOGoSpecialFoldersInRoot' default to diff --git a/SOGo/SoObjects/Mailer/SOGoMailObject.m b/SOGo/SoObjects/Mailer/SOGoMailObject.m index 13b8b397..37040bd9 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailObject.m +++ b/SOGo/SoObjects/Mailer/SOGoMailObject.m @@ -75,6 +75,8 @@ static BOOL debugBodyStructure = NO; return @".txt"; if ([st isEqualToString:@"html"]) return @".html"; + if ([st isEqualToString:@"calendar"]) + return @".ics"; } else if ([mt isEqualToString:@"image"]) return [@"." stringByAppendingString:st]; @@ -305,8 +307,13 @@ static BOOL debugBodyStructure = NO; _type = [_type lowercaseString]; _subtype = [_subtype lowercaseString]; - if ([_type isEqualToString:@"text"]) - return [_subtype isEqualToString:@"plain"]; + if ([_type isEqualToString:@"text"]) { + if ([_subtype isEqualToString:@"plain"]) + return YES; + + if ([_subtype isEqualToString:@"calendar"]) /* we also fetch calendars */ + return YES; + } return NO; } diff --git a/SOGo/SoObjects/Mailer/Version b/SOGo/SoObjects/Mailer/Version index 162f9207..455e2d01 100644 --- a/SOGo/SoObjects/Mailer/Version +++ b/SOGo/SoObjects/Mailer/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=75 +SUBMINOR_VERSION:=76 # v0.9.69 requires libNGMime v4.5.210 # v0.9.55 requires libNGExtensions v4.5.136 -- 2.39.5