mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-11 03:15:10 +00:00
feat(mail): new option to force default identity
Users can now force the default identity to always be used when replying or forwarding a message.
This commit is contained in:
@@ -215,6 +215,7 @@
|
||||
"Reply To Email" = "Reply To Email";
|
||||
"Signature" = "Signature";
|
||||
"Identities" = "Identities";
|
||||
"Always use the default identity when replying to messages" = "Always use the default identity when replying to messages";
|
||||
"Default Identity" = "Default Identity";
|
||||
"New Identity" = "New Identity";
|
||||
"(Click to create)" = "(Click to create)";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* UIxJSONPreferences.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2007-2020 Inverse inc.
|
||||
* Copyright (C) 2007-2021 Inverse inc.
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -441,6 +441,7 @@ static SoProduct *preferencesProduct = nil;
|
||||
[values removeObjectForKey: @"SOGoMailCertificate"];
|
||||
[values removeObjectForKey: @"SOGoMailCertificateAlwaysSign"];
|
||||
[values removeObjectForKey: @"SOGoMailCertificateAlwaysEncrypt"];
|
||||
[values removeObjectForKey: @"SOGoMailForceDefaultIdentity"];
|
||||
|
||||
// Add the domain's default vacation subject if user has not specified a custom subject
|
||||
vacationOptions = [defaults vacationOptions];
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* UIxPreferences.m - this file is part of SOGo
|
||||
*
|
||||
* Copyright (C) 2007-2020 Inverse inc.
|
||||
* Copyright (C) 2007-2021 Inverse inc.
|
||||
*
|
||||
* This file is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -1253,7 +1253,7 @@ static NSArray *reminderValues = nil;
|
||||
{
|
||||
knownKeys = [NSArray arrayWithObjects: @"id", @"name", @"serverName", @"port",
|
||||
@"userName", @"password", @"encryption", @"replyTo",
|
||||
@"identities", @"mailboxes",
|
||||
@"identities", @"mailboxes", @"forceDefaultIdentity",
|
||||
@"receipts", @"security", @"isNew",
|
||||
nil];
|
||||
[knownKeys retain];
|
||||
@@ -1307,6 +1307,10 @@ static NSArray *reminderValues = nil;
|
||||
identities = [account objectForKey: @"identities"];
|
||||
if ([self _validateAccountIdentities: identities])
|
||||
[target setObject: identities forKey: @"SOGoMailIdentities"];
|
||||
if ([[account objectForKey: @"forceDefaultIdentity"] boolValue])
|
||||
[target setObject: [NSNumber numberWithBool: YES] forKey: @"SOGoMailForceDefaultIdentity"];
|
||||
else if ([target objectForKey: @"SOGoMailforceDefaultIdentity"])
|
||||
[target removeObjectForKey: @"SOGoMailforceDefaultIdentity"];
|
||||
[self _extractMainReceiptsPreferences: [account objectForKey: @"receipts"] inDictionary: target];
|
||||
[self _extractMainSecurityPreferences: [account objectForKey: @"security"] inDictionary: target];
|
||||
}
|
||||
@@ -1512,6 +1516,7 @@ static NSArray *reminderValues = nil;
|
||||
if ([accounts count] > 0)
|
||||
{
|
||||
// The first account is the main system account. The following mapping is required:
|
||||
// - forceDefaultIdentity => SOGoMailForceDefaultIdentity
|
||||
// - receipts.receiptAction => SOGoMailReceiptAllow
|
||||
// - receipts.receiptNonRecipientAction => SOGoMailReceiptNonRecipientAction
|
||||
// - receipts.receiptOutsideDomainAction => SOGoMailReceiptOutsideDomainAction
|
||||
|
||||
Reference in New Issue
Block a user