mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-23 03:08:54 +00:00
feat(acccount): Add read only account
This commit is contained in:
1 parent
01f545b0b3
commit
370a4a433c
9 files changed
+120
-40
No files matched your search
@@ -490,11 +490,13 @@
|
||||
// Fetch draft initial data
|
||||
return Account.$$resource.fetch(message.$absolutePath({asDraft: true}), 'edit').then(function(data) {
|
||||
var accountDefaults = Account.$Preferences.defaults.AuxiliaryMailAccounts[_this.id];
|
||||
if (accountDefaults.security) {
|
||||
if (accountDefaults.security.alwaysSign)
|
||||
data.sign = true;
|
||||
if (accountDefaults.security.alwaysEncrypt)
|
||||
data.encrypt = true;
|
||||
if(accountDefaults) {
|
||||
if (accountDefaults.security) {
|
||||
if (accountDefaults.security.alwaysSign)
|
||||
data.sign = true;
|
||||
if (accountDefaults.security.alwaysEncrypt)
|
||||
data.encrypt = true;
|
||||
}
|
||||
}
|
||||
Account.$log.debug('New message (edit): ' + JSON.stringify(data, undefined, 2));
|
||||
angular.extend(message.editable, data);
|
||||
|
||||
Reference in new issue
Block a user