summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 50391f7)
raw | patch | inline | side by side (parent: 50391f7)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Oct 2009 09:07:07 +0000 (09:07 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 7 Oct 2009 09:07:07 +0000 (09:07 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14556 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc b/gosa-plugins/mail/personal/mail/class_mail-methods-cyrus.inc
index 3f6192fe1111c434f7e923a8c5ca06b329e57efe..e054fa29ef85ecd45e0456e9e1a40e4eb6127e78 100644 (file)
// Check file integrity
$files = array();
foreach(array("sieve-header.txt","sieve-spam.txt","sieve-mailsize.txt","sieve-vacation.txt","sieve-discard.txt") as $file){
- if(!file_exists(CONFIG_DIR."/mail/".$file) || ! is_readable(CONFIG_DIR."/mail/".$file)){
- $files[] = CONFIG_DIR."/mail/".$file;
- @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__ , CONFIG_DIR."/mail/".$file,
+ if(!file_exists(CONFIG_DIR."/".$file) || ! is_readable(CONFIG_DIR."/".$file)){
+ $files[] = CONFIG_DIR."/".$file;
+ @DEBUG (DEBUG_MAIL, __LINE__, __FUNCTION__, __FILE__ , CONFIG_DIR."/".$file,
"<b>Sieve template missing, please locate and move the template file: </b>");
}
}
is_integer(strpos($gosaMailDeliveryMode, "V")) ||
is_integer(strpos($gosaMailDeliveryMode, "S"))){
- $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/mail/sieve-header.txt")));
+ $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-header.txt")));
eval ("\$script.=\"$text\";");
}
/* Add anti-spam code */
if (is_integer(strpos($gosaMailDeliveryMode, "S"))){
$spambox= $gosaSpamMailbox;
- $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/mail/sieve-spam.txt")));
+ $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-spam.txt")));
eval ("\$script.=\"$text\";");
}
adjustable through GOsa. */
if (is_integer(strpos($gosaMailDeliveryMode, "R"))){
$maxsize= $gosaMailMaxSize;
- $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/mail/sieve-mailsize.txt")));
+ $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-mailsize.txt")));
eval ("\$script.=\"$text\";");
}
$addrlist .= ", \"$val\"";
}
$vacmsg= $gosaVacationMessage;
- $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/mail/sieve-vacation.txt")));
+ $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-vacation.txt")));
eval ("\$script.=\"$text\";");
}
/* If no local delivery is wanted, tell the script to discard the mail */
if (!is_integer(strpos($gosaMailDeliveryMode, "L"))){
- $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/mail/sieve-discard.txt")));
+ $text= preg_replace('/"/', '\\"', implode ("", file(CONFIG_DIR."/sieve-discard.txt")));
eval ("\$script.=\"$text\";");
}