2004-10-04 Helge Hess <helge.hess@opengroupware.org>
+ * SOGoMailBodyPart.m: improved MIME type generation (v0.9.24)
+
* SOGoMailBodyPart.m, SOGoMailObject.m: finished first part fetching
support (v0.9.23)
/* WebDAV */
- (NSString *)contentTypeForBodyPartInfo:(id)_info {
- NSString *mt, *st;
+ NSMutableString *type;
+ NSString *mt, *st;
+ NSDictionary *parameters;
+ NSEnumerator *ke;
+ NSString *pn;
if (![_info isNotNull])
return nil;
mt = [_info valueForKey:@"type"]; if (![mt isNotNull]) return nil;
st = [_info valueForKey:@"subtype"]; if (![st isNotNull]) return nil;
-
- // TODO: we could add the parameter list?!
- return [[mt stringByAppendingString:@"/"] stringByAppendingString:st];
+
+ type = [NSMutableString stringWithCapacity:16];
+ [type appendString:mt];
+ [type appendString:@"/"];
+ [type appendString:st];
+
+ parameters = [_info valueForKey:@"parameterList"];
+ ke = [parameters keyEnumerator];
+ while ((pn = [ke nextObject])) {
+ [type appendString:@"; "];
+ [type appendString:pn];
+ [type appendString:@"=\""];
+ [type appendString:[[parameters objectForKey:pn] stringValue]];
+ [type appendString:@"\""];
+ }
+ return type;
}
- (NSString *)davContentType {
2004-10-04 Helge Hess <helge.hess@opengroupware.org>
+ * UIxMailView.m: added 'currentAddress' accessors (v0.9.14)
+
* UIxMailView.m: use core infos stored in message SoObject for display
(v0.9.13)
[super sleep];
}
+/* accessors */
+
+- (void)setCurrentAddress:(id)_addr {
+ ASSIGN(self->currentAddress, _addr);
+}
+- (id)currentAddress {
+ return self->currentAddress;
+}
+
/* fetching */
- (id)message {