+2005-07-21 Helge Hess <helge.hess@opengroupware.org>
+
+ * SOGoMailObject.m: added a -davEntityTag (v0.9.117)
+
2005-07-20 Helge Hess <helge.hess@opengroupware.org>
* SOGoMailObject.m: improved -doesMailExist check (do not refetch if
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 {
@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;
// 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 {
forFieldWithPrefix:@"<http://"];
}
+/* etag support */
+
+- (id)davEntityTag {
+ /*
+ Note: There is one thing which *can* change for an existing message,
+ those are the IMAP4 flags (and annotations, which we do not use).
+ Since we don't render the flags, it should be OK, if this changes
+ we must embed the flagging into the etag.
+ */
+ return mailETag;
+}
+
/* debugging */
- (BOOL)isDebuggingEnabled {