Monotone-Parent: 0869cb2e3bedff16fb0985d9bde1c2c2a5c80820

Monotone-Revision: ac0d12f89b420e5f1e825cebddb440417e76ce4b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-04-20T13:37:46
This commit is contained in:
Wolfgang Sourdeau
2012-04-20 13:37:46 +00:00
parent f306ab6a71
commit 2346d35d21
10 changed files with 134 additions and 4 deletions
+33 -2
View File
@@ -577,7 +577,7 @@
- (void) _appendSystemMailAccount
{
NSString *fullName, *replyTo, *imapLogin, *imapServer, *signature,
*encryption, *scheme, *action, *query;
*encryption, *scheme, *action, *query, *customValue;
NSMutableDictionary *mailAccount, *identity, *mailboxes, *receipts;
NSNumber *port;
NSMutableArray *identities;
@@ -647,6 +647,37 @@
max = [mails count];
if (max > 1)
max--;
/* custom from */
if ([[self domainDefaults] mailCustomFromEnabled])
{
[self userDefaults];
customValue = [_defaults mailCustomEmail];
if ([customValue length] > 0)
{
identity = [NSMutableDictionary new];
[identity setObject: customValue forKey: @"email"];
fullName = [_defaults mailCustomFullName];
if (![fullName length])
{
fullName = [self cn];
if (![fullName length])
fullName = login;
}
[identity setObject: fullName forKey: @"fullName"];
if ([replyTo length] > 0)
[identity setObject: replyTo forKey: @"replyTo"];
signature = [_defaults mailSignature];
if (signature)
[identity setObject: signature forKey: @"signature"];
[identities addObject: identity];
[identity release];
}
}
for (count = 0; count < max; count++)
{
identity = [NSMutableDictionary new];
@@ -749,7 +780,7 @@
NSArray *identities;
identities = [[self mailAccounts] objectsForKey: @"identities"
notFoundMarker: nil];
notFoundMarker: nil];
return [identities flattenedArray];
}