mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 11:55:24 +00:00
Monotone-Parent: 0d3cf6e6df797aaeaebcf6b6b99f0d547f5a6c9d
Monotone-Revision: bbea5e19ac4a2f9a19a883ba3996f30f53daba4d Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2007-11-05T21:19:09 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -161,39 +161,36 @@
|
||||
|
||||
- (NSString *) messageRowStyleClass
|
||||
{
|
||||
return [self isMessageDeleted]
|
||||
? @"mailer_listcell_deleted"
|
||||
: @"mailer_listcell_regular";
|
||||
NSString *rowClass;
|
||||
|
||||
rowClass = [self isMessageDeleted]? @"mailer_listcell_deleted" : @"mailer_listcell_regular";
|
||||
|
||||
if (![self isMessageRead])
|
||||
rowClass = [rowClass stringByAppendingString: @" mailer_unreadmail"];
|
||||
|
||||
return rowClass;
|
||||
}
|
||||
|
||||
- (NSString *) messageSubjectCellStyleClass
|
||||
{
|
||||
NSArray *flags;
|
||||
NSString *cellClass;
|
||||
NSString *cellClass = @"messageSubjectColumn ";
|
||||
|
||||
flags = [[self message] valueForKey:@"flags"];
|
||||
|
||||
if ([flags containsObject: @"seen"])
|
||||
if ([flags containsObject: @"answered"])
|
||||
{
|
||||
if ([flags containsObject: @"answered"])
|
||||
{
|
||||
if ([flags containsObject: @"$forwarded"])
|
||||
cellClass = @"mailer_forwardedrepliedmailsubject";
|
||||
else
|
||||
cellClass = @"mailer_repliedmailsubject";
|
||||
}
|
||||
else if ([flags containsObject: @"$forwarded"])
|
||||
cellClass = @"mailer_forwardedmailsubject";
|
||||
if ([flags containsObject: @"$forwarded"])
|
||||
cellClass = [cellClass stringByAppendingString: @"mailer_forwardedrepliedmailsubject"];
|
||||
else
|
||||
cellClass = @"mailer_readmailsubject";
|
||||
cellClass = [cellClass stringByAppendingString: @"mailer_repliedmailsubject"];
|
||||
}
|
||||
else if ([flags containsObject: @"$forwarded"])
|
||||
cellClass = [cellClass stringByAppendingString: @"mailer_forwardedmailsubject"];
|
||||
else
|
||||
cellClass = @"mailer_unreadmailsubject";
|
||||
cellClass = [cellClass stringByAppendingString: @"mailer_readmailsubject"];
|
||||
|
||||
return cellClass;
|
||||
// return ([self isMessageRead]
|
||||
// ? @"mailer_readmailsubject"
|
||||
// : @"mailer_unreadmailsubject");
|
||||
}
|
||||
|
||||
- (BOOL) hasMessageAttachment
|
||||
|
||||
Reference in New Issue
Block a user