From 04c7ebea11a4e8f385f13b31f6606e7140914fbf Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Tue, 15 Jul 2008 15:27:56 -0400
Subject: [PATCH] - Completed the mail fiter rules - fixed bugs when websites and dns zones were deleted.
---
interface/web/mail/mail_user_filter_edit.php | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/interface/web/mail/mail_user_filter_edit.php b/interface/web/mail/mail_user_filter_edit.php
index a419988..0256aa8 100644
--- a/interface/web/mail/mail_user_filter_edit.php
+++ b/interface/web/mail/mail_user_filter_edit.php
@@ -114,11 +114,12 @@
if($this->dataRecord["action"] == 'move') {
$content .= "
-`test -e ".'$DEFAULT/'.$this->dataRecord["target"]."`
+`test -e ".'$DEFAULT/.'.$this->dataRecord["target"]."`
if ( ".'$RETURNCODE'." != 0 )
{
`maildirmake -f ".$this->dataRecord["target"].' $DEFAULT'."`
`chmod -R 0700 ".'$DEFAULT/'.$this->dataRecord["target"]."`
+ `echo INBOX.".$this->dataRecord["target"]." >> ".'$MAILDIR'."/courierimapsubscribed`
}
";
}
@@ -139,7 +140,7 @@
$content .= "exception {\n";
if($this->dataRecord["action"] == 'move') {
- $content .= 'to $DEFAULT/'.$this->dataRecord["target"]."/\n";
+ $content .= 'to $DEFAULT/.'.$this->dataRecord["target"]."/\n";
} else {
$content .= "to /dev/null\n";
}
--
Gitblit v1.9.1