+2005-07-21 Helge Hess <helge.hess@opengroupware.org>
+
+ * UIxMailView.m: do not fetch full message info for 304 existance
+ checks but rather call -doesMailExist (v0.9.162)
+
2005-07-20 Helge Hess <helge.hess@opengroupware.org>
* removed 'stop' buttons from toolbars (v0.9.161)
/* actions */
- (id)defaultAction {
- if ([self message] == nil) {
- // TODO: redirect to proper error
- return [NSException exceptionWithHTTPStatus:404 /* Not Found */
- reason:@"did not find specified message!"];
- }
-
/* check etag to see whether we really must rerender */
-
if (mailETag != nil ) {
NSString *s;
if ([s rangeOfString:mailETag].length > 0) { /* not perfectly correct */
/* client already has the proper entity */
// [self logWithFormat:@"MATCH: %@ (tag %@)", s, mailETag];
+
+ if (![[self clientObject] doesMailExist]) {
+ return [NSException exceptionWithHTTPStatus:404 /* Not Found */
+ reason:@"message got deleted"];
+ }
+
[[[self context] response] setStatus:304 /* Not Modified */];
return [[self context] response];
}
}
}
+
+ if ([self message] == nil) {
+ // TODO: redirect to proper error
+ return [NSException exceptionWithHTTPStatus:404 /* Not Found */
+ reason:@"did not find specified message!"];
+ }
+
return self;
}