diff --git a/ChangeLog b/ChangeLog index 72ce783ca..0afb810bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-09-17 Wolfgang Sourdeau + * UI/MailerUI/UIxMailListView.m ([UIxMailListView + -messageSubject]): new accessor method to work-around a problem + within SOPE where a subject could be returned as an NSData. + * SoObjects/SOGo/SOGoParentFolder.m ([SOGoParentFolder -appendPersonalSources]): make sure the value of the "c_path4" of the returned rows are not NSNull, otherwise, discard them. diff --git a/UI/MailerUI/UIxMailListView.m b/UI/MailerUI/UIxMailListView.m index ac5b71844..e004eae93 100644 --- a/UI/MailerUI/UIxMailListView.m +++ b/UI/MailerUI/UIxMailListView.m @@ -98,6 +98,24 @@ static int attachmentFlagSize = 8096; return [dateFormatter formattedDateAndTime: messageDate]; } +- (NSString *) messageSubject +{ + NSString *subject; + id envSubject; + + envSubject = [[message valueForKey: @"envelope"] subject]; + if ([envSubject isKindOfClass: [NSData class]]) + { + subject = [[NSString alloc] initWithData: envSubject + encoding: NSUTF8StringEncoding]; + [subject autorelease]; + } + else + subject = envSubject; + + return subject; +} + - (BOOL) showToAddress { NSString *ftype; diff --git a/UI/Templates/MailerUI/UIxMailListView.wox b/UI/Templates/MailerUI/UIxMailListView.wox index c5a3f0de0..f77b31986 100644 --- a/UI/Templates/MailerUI/UIxMailListView.wox +++ b/UI/Templates/MailerUI/UIxMailListView.wox @@ -62,7 +62,7 @@ >