diff --git a/felamimail/inc/class.uisieve.inc.php b/felamimail/inc/class.uisieve.inc.php index f6b35c0069..002498f394 100644 --- a/felamimail/inc/class.uisieve.inc.php +++ b/felamimail/inc/class.uisieve.inc.php @@ -409,6 +409,17 @@ $this->t->set_var('value_address',lang('not allowed')); } } + if ((!empty($preferences->preferences['prefpreventforwarding']) && + $preferences->preferences['prefpreventforwarding'] == 1 )) + { + $this->t->set_var('action_address_disabled','disabled'); + $this->t->set_var('address_value_disabled','disabled'); + } + else + { + $this->t->set_var('action_address_disabled',''); + $this->t->set_var('address_value_disabled',''); + } $this->t->set_var('value_ruleID',$_ruleID); // translate most of the parts diff --git a/felamimail/templates/default/sieveEditForm.tpl b/felamimail/templates/default/sieveEditForm.tpl index 9a6904bf3a..e71cb95bc4 100644 --- a/felamimail/templates/default/sieveEditForm.tpl +++ b/felamimail/templates/default/sieveEditForm.tpl @@ -89,10 +89,10 @@ function SubmitForm(a)