Monotone-Parent: 1f5154a7061d5d35fbae4f27e238a58b5c521dc7

Monotone-Revision: 6b88d1d42fb21659bd47fc0d1167769d8101775f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-11-05T22:39:10
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-11-05 22:39:10 +00:00
parent 3c6d855c5e
commit b1b3818459
3 changed files with 20 additions and 4 deletions
+3
View File
@@ -1,5 +1,8 @@
2007-11-05 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailerUI/UIxMailListView.m ([UIxMailListView
-showToAddress]): the answer is cached.
* UI/Common/UIxObjectActions.m ([UIxObjectActions +initialize]):
read "SOGoACLsSendEMailNotifications" from the user defaults to
determiner whether to send an email when a user is added or
+1
View File
@@ -36,6 +36,7 @@
EOQualifier *qualifier;
SOGoDateFormatter *dateFormatter;
NSTimeZone *userTimeZone;
int folderType;
}
- (NSString *) defaultSortKey;
+16 -4
View File
@@ -38,8 +38,10 @@
#import <EOControl/EOQualifier.h>
#import <SoObjects/Mailer/SOGoDraftsFolder.h>
#import <SoObjects/Mailer/SOGoMailFolder.h>
#import <SoObjects/Mailer/SOGoMailObject.h>
#import <SoObjects/Mailer/SOGoSentFolder.h>
#import <SoObjects/SOGo/NSArray+Utilities.h>
#import <SoObjects/SOGo/SOGoDateFormatter.h>
#import <SoObjects/SOGo/SOGoUser.h>
@@ -60,6 +62,7 @@
user = [context activeUser];
ASSIGN (dateFormatter, [user dateFormatterInContext: context]);
ASSIGN (userTimeZone, [user timeZone]);
folderType = 0;
}
return self;
@@ -113,10 +116,19 @@
- (BOOL) showToAddress
{
NSString *ftype;
ftype = [[self clientObject] valueForKey:@"outlookFolderClass"];
return [ftype isEqual:@"IPF.Sent"];
SOGoMailFolder *co;
if (!folderType)
{
co = [self clientObject];
if ([co isKindOfClass: [SOGoSentFolder class]]
|| [co isKindOfClass: [SOGoDraftsFolder class]])
folderType = 1;
else
folderType = -1;
}
return (folderType == 1);
}
/* title */