mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 02:45:25 +00:00
refactor(preferences): conditionally activate the Sieve script
All the user defaults are now editable through the Preferences module, even if an external Sieve script is enabled. However, the user can disable the external Sieve script and force the activation of the "sogo" Sieve script.
This commit is contained in:
@@ -18,7 +18,6 @@
|
||||
this.timeZonesSearchText = '';
|
||||
this.sieveVariablesCapability = ($window.sieveCapabilities.indexOf('variables') >= 0);
|
||||
this.mailLabelKeyRE = new RegExp(/^(?!^_\$)[^(){} %*\"\\\\]*?$/);
|
||||
this.hasActiveExternalSieveScripts = $window.hasActiveExternalSieveScripts;
|
||||
|
||||
// Set alternate avatar in User service
|
||||
if (Preferences.defaults.SOGoAlternateAvatar)
|
||||
@@ -285,6 +284,11 @@
|
||||
});
|
||||
};
|
||||
|
||||
this.manageSieveScript = function(form) {
|
||||
this.preferences.defaults.hasActiveExternalSieveScripts = false;
|
||||
form.$setDirty();
|
||||
};
|
||||
|
||||
this.confirmChanges = function($event, form) {
|
||||
var target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user