Monotone-Parent: 3e73bc9e2ac67c257e07beaab3ae5c3a2c1f7479

Monotone-Revision: 9bdbe760f39fa9a2561fe56ce9dac03727cfb38f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-29T21:00:35
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-10-29 21:00:35 +00:00
parent acab9cf1d8
commit 5b2e15b0ab
2 changed files with 17 additions and 9 deletions

View File

@ -1,5 +1,9 @@
2007-10-29 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/Mailer/SOGoMailBodyPart.m ([SOGoMailBodyPart
-davContentType]): ignore any possible parameter taken from the
mime-info of the body part.
* UI/MailerUI/UIxMailListView.m ([UIxMailListView
-lastFirstMessageNumber]): new accessor that returns the first
message number of the last series of messages.

View File

@ -236,20 +236,24 @@ static BOOL debugOn = NO;
return @"application/octet-stream";
}
- (NSString *)davContentType {
- (NSString *) davContentType
{
// TODO: what about the content-type and other headers?
// => we could pass them in as the extension? (eg generate 1.gif!)
NSString *pe;
NSString *parts, *contentType, *extension;
/* try type from body structure info */
if ((pe = [self contentTypeForBodyPartInfo:[self partInfo]]) != nil)
return pe;
/* construct type */
pe = [[self nameInContainer] pathExtension];
return [self contentTypeForPathExtension:pe];
parts = [self contentTypeForBodyPartInfo: [self partInfo]];
contentType = [[parts componentsSeparatedByString: @";"] objectAtIndex: 0];
if (![contentType length])
{
extension = [[self nameInContainer] pathExtension];
contentType = [self contentTypeForPathExtension: extension];
}
return contentType;
}
/* actions */