From: hickert Date: Fri, 23 Mar 2007 09:17:20 +0000 (+0000) Subject: Readded basic sieve settings. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=72f4a8a044180eb5c35241e7da1f1416db1be2dd;p=gosa.git Readded basic sieve settings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5871 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/sieve/class_My_Parser.inc b/include/sieve/class_My_Parser.inc index 197d94ab2..691faf43e 100644 --- a/include/sieve/class_My_Parser.inc +++ b/include/sieve/class_My_Parser.inc @@ -36,6 +36,8 @@ class My_Parser extends Parser */ function parse($script) { + $script = preg_replace("/^###GOSA/","",$script); + $this->registeredExtensions_ = array(); $this->status_text = "incomplete"; $this->script_ = $script; @@ -57,7 +59,7 @@ class My_Parser extends Parser function get_sieve_script() { - return($this->tree_->get_sieve_script()); + return("###GOSA\n".$this->tree_->get_sieve_script()); } diff --git a/plugins/personal/mail/class_mailAccount.inc b/plugins/personal/mail/class_mailAccount.inc index b54791716..8112406bd 100644 --- a/plugins/personal/mail/class_mailAccount.inc +++ b/plugins/personal/mail/class_mailAccount.inc @@ -774,7 +774,7 @@ class mailAccount extends plugin /* Ensure that this is an existing account */ if($this->initially_was_account){ - /* Write sieve information only if not in C mode * / + /* Write sieve information only if not in C mode */ if (!is_integer(strpos($this->gosaMailDeliveryMode, "C"))){ $method->configureFilter($this->$id, $this->gosaMailDeliveryMode, @@ -785,7 +785,6 @@ class mailAccount extends plugin $this->gosaSpamSortLevel, $this->gosaVacationMessage); } - */ } } } diff --git a/plugins/personal/mail/generic.tpl b/plugins/personal/mail/generic.tpl index cae4ef6a9..1116201be 100644 --- a/plugins/personal/mail/generic.tpl +++ b/plugins/personal/mail/generic.tpl @@ -85,7 +85,6 @@ -