mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-19 13:43:22 +00:00
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:
@@ -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
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
EOQualifier *qualifier;
|
||||
SOGoDateFormatter *dateFormatter;
|
||||
NSTimeZone *userTimeZone;
|
||||
int folderType;
|
||||
}
|
||||
|
||||
- (NSString *) defaultSortKey;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user