2007-10-25 Wolfgang Sourdeau <wsourdeau@inverse.ca>
+ * UI/MailerUI/UIxMailListView.m ([UIxMailListView
+ -messageSubjectCellStyleClass]): added support for replied,
+ forwarded, forwarded and replied mails.
+
* SoObjects/Mailer/NSData+Mail.m ([NSData
-bodyDataFromEncoding:encoding]): new utility method that decodes
the NSData instance properly depending on the encoding string
- (NSString *) messageSubjectCellStyleClass
{
- return ([self isMessageRead]
- ? @"mailer_readmailsubject"
- : @"mailer_unreadmailsubject");
+ NSArray *flags;
+ NSString *cellClass;
+
+ flags = [[self message] valueForKey:@"flags"];
+
+ if ([flags containsObject: @"seen"])
+ {
+ if ([flags containsObject: @"answered"])
+ {
+ if ([flags containsObject: @"$forwarded"])
+ cellClass = @"mailer_forwardedrepliedmailsubject";
+ else
+ cellClass = @"mailer_repliedmailsubject";
+ }
+ else if ([flags containsObject: @"$forwarded"])
+ cellClass = @"mailer_forwardedmailsubject";
+ else
+ cellClass = @"mailer_readmailsubject";
+ }
+ else
+ cellClass = @"mailer_unreadmailsubject";
+
+ return cellClass;
+// return ([self isMessageRead]
+// ? @"mailer_readmailsubject"
+// : @"mailer_unreadmailsubject");
}
- (BOOL) hasMessageAttachment
TD.mailer_readmailsubject
{
- background-image: url(message-mail-read.png) !important;
- background-repeat: no-repeat !important;
- background-position: 0px 0px !important;
padding-left: 20px !important;
}
TD.mailer_unreadmailsubject
{
- background-image: url(message-mail.png) !important;
+ background-image: url(icon-new.png) !important;
background-repeat: no-repeat !important;
background-position: 0px 0px !important;
padding-left: 20px !important;
font-weight: bold !important;
}
+TD.mailer_repliedmailsubject
+{
+ background-image: url(icon-replied.png) !important;
+ background-repeat: no-repeat !important;
+ background-position: 0px 0px !important;
+ padding-left: 20px !important;
+}
+
+TD.mailer_forwardedmailsubject
+{
+ background-image: url(icon-forwarded.png) !important;
+ background-repeat: no-repeat !important;
+ background-position: 0px 0px !important;
+ padding-left: 20px !important;
+}
+
+TD.mailer_forwardedrepliedmailsubject
+{
+ background-image: url(icon-forwarded-replied.png) !important;
+ background-repeat: no-repeat !important;
+ background-position: 0px 0px !important;
+ padding-left: 20px !important;
+}
+
+TD.mailer_deletedmailsubject
+{
+ background-image: url(icon-deleted.png) !important;
+ background-repeat: no-repeat !important;
+ background-position: 0px 0px !important;
+ padding-left: 20px !important;
+}
+
TD.mailer_readmailsubject a
{
color: black;