From: helge Date: Thu, 21 Jul 2005 08:40:32 +0000 (+0000) Subject: added davEntityTag to SOGoMailObject X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3feb779954a55ed93fb6d84c7bf82421ff07ccf3;p=scalable-opengroupware.org added davEntityTag to SOGoMailObject git-svn-id: http://svn.opengroupware.org/SOGo/trunk@861 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/Mailer/ChangeLog b/SOGo/SoObjects/Mailer/ChangeLog index 24bb3375..350d0e1b 100644 --- a/SOGo/SoObjects/Mailer/ChangeLog +++ b/SOGo/SoObjects/Mailer/ChangeLog @@ -1,3 +1,7 @@ +2005-07-21 Helge Hess + + * SOGoMailObject.m: added a -davEntityTag (v0.9.117) + 2005-07-20 Helge Hess * SOGoMailObject.m: improved -doesMailExist check (do not refetch if diff --git a/SOGo/SoObjects/Mailer/SOGoMailBodyPart.m b/SOGo/SoObjects/Mailer/SOGoMailBodyPart.m index 28b6ea32..3ee0a3db 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailBodyPart.m +++ b/SOGo/SoObjects/Mailer/SOGoMailBodyPart.m @@ -42,7 +42,8 @@ static BOOL debugOn = NO; UIX_MAILER_MAJOR_VERSION, UIX_MAILER_MINOR_VERSION, UIX_MAILER_SUBMINOR_VERSION]; - NSLog(@"Note: using constant etag for mail parts: '%@'", mailETag); + NSLog(@"Note(SOGoMailBodyPart): using constant etag for mail parts: '%@'", + mailETag); } - (void)dealloc { diff --git a/SOGo/SoObjects/Mailer/SOGoMailObject.m b/SOGo/SoObjects/Mailer/SOGoMailObject.m index 32ce2a3b..1bbba74c 100644 --- a/SOGo/SoObjects/Mailer/SOGoMailObject.m +++ b/SOGo/SoObjects/Mailer/SOGoMailObject.m @@ -31,7 +31,8 @@ @implementation SOGoMailObject -static NSArray *coreInfoKeys = nil; +static NSArray *coreInfoKeys = nil; +static NSString *mailETag = nil; static BOOL heavyDebug = NO; static BOOL fetchHeader = YES; static BOOL debugOn = NO; @@ -71,6 +72,13 @@ static BOOL debugSoParts = NO; // not yet supported: @"INTERNALDATE", nil]; } + + mailETag = [[NSString alloc] initWithFormat:@"\"imap4url_%d_%d_%03d\"", + UIX_MAILER_MAJOR_VERSION, + UIX_MAILER_MINOR_VERSION, + UIX_MAILER_SUBMINOR_VERSION]; + NSLog(@"Note(SOGoMailObject): using constant etag for mail parts: '%@'", + mailETag); } - (void)dealloc { @@ -879,6 +887,18 @@ static BOOL debugSoParts = NO; forFieldWithPrefix:@"