mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-11 00:08:51 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
BIN
UI/WebServerResources/icon-deleted.png
Normal file
BIN
UI/WebServerResources/icon-deleted.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 705 B |
BIN
UI/WebServerResources/icon-forwarded-replied.png
Normal file
BIN
UI/WebServerResources/icon-forwarded-replied.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 734 B |
BIN
UI/WebServerResources/icon-forwarded.png
Normal file
BIN
UI/WebServerResources/icon-forwarded.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 546 B |
BIN
UI/WebServerResources/icon-new.png
Normal file
BIN
UI/WebServerResources/icon-new.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 396 B |
BIN
UI/WebServerResources/icon-replied.png
Normal file
BIN
UI/WebServerResources/icon-replied.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 541 B |
Binary file not shown.
|
Before Width: | Height: | Size: 626 B |
Reference in New Issue
Block a user