mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
Monotone-Parent: 53787a178138e23c283a66af023cbddab3f3c417
Monotone-Revision: d74fd5d68d5fae10363904ec274b94033ae33c2c Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-19T22:44:12 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#import <NGObjWeb/WOContext.h>
|
||||
#import <NGObjWeb/WORequest.h>
|
||||
|
||||
#import <SoObjects/SOGo/NSArray+Utilities.h>
|
||||
#import <SoObjects/SOGo/NSDictionary+Utilities.h>
|
||||
#import <SoObjects/SOGo/SOGoUser.h>
|
||||
|
||||
@@ -472,7 +473,12 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
// string="itemIdentityText" selection="defaultIdentity"/></label>
|
||||
- (NSArray *) identitiesList
|
||||
{
|
||||
return [user allIdentities];
|
||||
NSDictionary *primaryAccount;
|
||||
|
||||
#warning we manage only one account per user at this time...
|
||||
primaryAccount = [[user mailAccounts] objectAtIndex: 0];
|
||||
|
||||
return [primaryAccount objectForKey: @"identities"];
|
||||
}
|
||||
|
||||
- (NSString *) itemIdentityText
|
||||
@@ -480,9 +486,9 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
return [item keysWithFormat: @"%{fullName} <%{email}>"];
|
||||
}
|
||||
|
||||
- (NSDictionary *) defaultIdentity
|
||||
- (NSMutableDictionary *) defaultIdentity
|
||||
{
|
||||
NSDictionary *currentIdentity, *defaultIdentity;
|
||||
NSMutableDictionary *currentIdentity, *defaultIdentity;
|
||||
NSEnumerator *identities;
|
||||
|
||||
defaultIdentity = nil;
|
||||
@@ -496,6 +502,19 @@ static BOOL shouldDisplayPasswordChange = NO;
|
||||
return defaultIdentity;
|
||||
}
|
||||
|
||||
- (NSString *) signature
|
||||
{
|
||||
return [[self defaultIdentity] objectForKey: @"signature"];
|
||||
}
|
||||
|
||||
- (void) setSignature: (NSString *) newSignature
|
||||
{
|
||||
[[self defaultIdentity] setObject: newSignature
|
||||
forKey: @"signature"];
|
||||
[userDefaults setObject: [user mailAccounts]
|
||||
forKey: @"MailAccounts"];
|
||||
}
|
||||
|
||||
- (id <WOActionResults>) defaultAction
|
||||
{
|
||||
id <WOActionResults> results;
|
||||
|
||||
Reference in New Issue
Block a user