]> err.no Git - scalable-opengroupware.org/commitdiff
fetch text/calendar parts as flat content
authorhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 21 Feb 2005 01:24:52 +0000 (01:24 +0000)
committerhelge <helge@d1b88da0-ebda-0310-925b-ed51d893ca5b>
Mon, 21 Feb 2005 01:24:52 +0000 (01:24 +0000)
git-svn-id: http://svn.opengroupware.org/SOGo/trunk@597 d1b88da0-ebda-0310-925b-ed51d893ca5b

SOGo/SoObjects/Mailer/ChangeLog
SOGo/SoObjects/Mailer/SOGoMailObject.m
SOGo/SoObjects/Mailer/Version

index 1538e62939e54ff7fcc29e9b4d051359e8fd2716..7a48020f69e4a98a4fdf0c35af0e06d2c41f7df3 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-21  Helge Hess  <helge.hess@opengroupware.org>
+
+       * 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  <helge.hess@opengroupware.org>
 
        * SOGoMailAccount.m: added 'SOGoSpecialFoldersInRoot' default to
index 13b8b397e76760e43c4822e4777271b6ad0db140..37040bd98b0f7b747a8fd251f2040532971cedfa 100644 (file)
@@ -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;
 }
 
index 162f9207ec57d6cbc34a5b8c48aa47600da3a610..455e2d016e288205e3698cd5898d90153e285086 100644 (file)
@@ -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