From e2ddb5e95cdb8666acc57f85106216d8c64bbe7e Mon Sep 17 00:00:00 2001 From: helge Date: Wed, 6 Jul 2005 21:21:22 +0000 Subject: [PATCH] prefetch pgp-signature parts git-svn-id: http://svn.opengroupware.org/SOGo/trunk@676 d1b88da0-ebda-0310-925b-ed51d893ca5b --- SOGo/SoObjects/Mailer/ChangeLog | 6 ++++++ SOGo/SoObjects/Mailer/SOGoMailObject.m | 12 ++++++++++++ SOGo/SoObjects/Mailer/Version | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index 1acf7ad9..d3112e21 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,7 +1,13 @@ +2005-07-06 Helge Hess + + * SOGoMailObject.m: prefetch pgp-signature parts (v0.9.87) + 2005-07-06 Helge Hess * SOGoMailObject.m: started -trash action (v0.9.86) +2005-07-06 Helge Hess + * v0.9.85 * SOGoMailFolder.m: added ability to check certain ACL permissions (and diff --git a/SOGo/SoObjects/Mailer/SOGoMailObject.m b/SOGo/SoObjects/Mailer/SOGoMailObject.m index 455eaba8..be2ad752 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailObject.m +++ b/SOGo/SoObjects/Mailer/SOGoMailObject.m @@ -82,6 +82,10 @@ static BOOL debugBodyStructure = NO; } else if ([mt isEqualToString:@"image"]) return [@"." stringByAppendingString:st]; + else if ([mt isEqualToString:@"application"]) { + if ([st isEqualToString:@"pgp-signature"]) + return @".asc"; + } return nil; } @@ -206,6 +210,8 @@ static BOOL debugBodyStructure = NO; Remember that we need special processing for message/rfc822 which maps the namespace of multiparts directly into the main namespace. + + TODO(hh): no I don't remember, please explain in more detail! */ pe = [_path objectEnumerator]; while ((p = [pe nextObject]) != nil && [info isNotNull]) { @@ -316,6 +322,12 @@ static BOOL debugBodyStructure = NO; if ([_subtype isEqualToString:@"calendar"]) /* we also fetch calendars */ return YES; } + + if ([_type isEqualToString:@"application"]) { + if ([_subtype isEqualToString:@"pgp-signature"]) + return YES; + } + return NO; } diff --git a/SOGo/SoObjects/Mailer/Version b/SOGo/SoObjects/Mailer/Version index 668f465c..cb57afef 100644 --- a/SOGo/SoObjects/Mailer/Version +++ b/SOGo/SoObjects/Mailer/Version @@ -1,6 +1,6 @@ # Version file -SUBMINOR_VERSION:=86 +SUBMINOR_VERSION:=87 # v0.9.69 requires libNGMime v4.5.210 # v0.9.55 requires libNGExtensions v4.5.136 -- 2.39.2