mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-25 13:25:28 +00:00
Monotone-Parent: f8d8d7341ccf044e9a25eb470cc329184daf2c24
Monotone-Revision: 3bfd9a2af826715d8da2b87c077e782d859a76cf Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-06-01T05:10:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
2007-06-01 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* SoObjects/SOGo/SOGoUser.m ([SOGoUser +initialize]): declare
|
||||
"UTC" as fallback timezone instead of "Canada/Eastern".
|
||||
([-hasEmail:email]): make use of the new NSArray's
|
||||
containsCaseInsensitiveString: method.
|
||||
|
||||
* SoObjects/Mailer/SOGoMailObject.m ([SOGoMailObject
|
||||
-davContentType]): declare "message/rfc822" as content type.
|
||||
|
||||
|
||||
@@ -30,8 +30,10 @@
|
||||
#import "AgenorUserDefaults.h"
|
||||
#import "LDAPUserManager.h"
|
||||
#import "SOGoContentObject.h"
|
||||
#import "SOGoUser.h"
|
||||
#import "SOGoPermissions.h"
|
||||
#import "NSArray+Utilities.h"
|
||||
|
||||
#import "SOGoUser.h"
|
||||
|
||||
static NSTimeZone *serverTimeZone = nil;
|
||||
static NSString *fallbackIMAP4Server = nil;
|
||||
@@ -57,7 +59,7 @@ static NSURL *AgenorProfileURL = nil;
|
||||
{
|
||||
tzName = [ud stringForKey: @"SOGoServerTimeZone"];
|
||||
if (!tzName)
|
||||
tzName = @"Canada/Eastern";
|
||||
tzName = @"UTC";
|
||||
serverTimeZone = [NSTimeZone timeZoneWithName: tzName];
|
||||
[serverTimeZone retain];
|
||||
}
|
||||
@@ -186,23 +188,10 @@ static NSURL *AgenorProfileURL = nil;
|
||||
|
||||
- (BOOL) hasEmail: (NSString *) email
|
||||
{
|
||||
BOOL hasEmail;
|
||||
NSString *currentEmail, *cmpEmail;
|
||||
NSEnumerator *emails;
|
||||
|
||||
hasEmail = NO;
|
||||
if (!allEmails)
|
||||
[self _fetchAllEmails];
|
||||
cmpEmail = [email lowercaseString];
|
||||
emails = [allEmails objectEnumerator];
|
||||
currentEmail = [emails nextObject];
|
||||
while (currentEmail && !hasEmail)
|
||||
if ([[currentEmail lowercaseString] isEqualToString: cmpEmail])
|
||||
hasEmail = YES;
|
||||
else
|
||||
currentEmail = [emails nextObject];
|
||||
|
||||
return hasEmail;
|
||||
|
||||
return [allEmails containsCaseInsensitiveString: email];
|
||||
}
|
||||
|
||||
- (NSString *) cn
|
||||
|
||||
Reference in New Issue
Block a user