Monotone-Parent: 32dfb6e6d5b5c65eb70d4f6d9673a8e57b99795d

Monotone-Revision: 92223c349e36554e352239ae2da737603abfaea3

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-25T20:07:56
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-10-25 20:07:56 +00:00
parent 13e3051298
commit 9657b7f1d8
9 changed files with 63 additions and 7 deletions

View File

@@ -1,5 +1,9 @@
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

View File

@@ -173,9 +173,32 @@ static int attachmentFlagSize = 8096;
- (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

View File

@@ -240,21 +240,50 @@ span.mailer_datefield
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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 705 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 546 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 396 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B