aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/spamd.xml')
-rw-r--r--packages/spamd.xml17
1 files changed, 9 insertions, 8 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml
index 173c322c..78096548 100644
--- a/packages/spamd.xml
+++ b/packages/spamd.xml
@@ -108,17 +108,18 @@
fwrite($fd, ":" . rtrim($spamd['providername']));
}
fwrite($fd, ":\n\n# begin of whitelist\n");
- fwrite($fd, ":whitelist:\\ \n");
- fwrite($fd, ":white:\\ \n");
- fwrite($fd, ":file=/var/mail/whitelist.txt\n");
+ fwrite($fd, "whitelist:\\\n");
+ fwrite($fd, "\t:white:\\\n");
+ fwrite($fd, "\t:file=/var/mail/whitelist.txt\n");
/* loop through each item and write out its configuration */
fwrite($fd, "\n# begin of user created entries\n");
foreach($config['installedpackages']['spamd']['config'] as $spamd) {
- fwrite($fd, rtrim($spamd['providername']) . ":\\ \n");
- fwrite($fd, ":" . rtrim($spamd['providermethod']) . ":\\ \n");
- fwrite($fd, ":msg=\"" . rtrim($spamd['rejectmessage']) . "\":\\ \n");
- fwrite($fd, ":" . rtrim($spamd['providermethod']) . ":\\ \n");
- fwrite($fd, ":file=" . rtrim($spamd['providerurl']) . ":\n\n");
+ fwrite($fd, rtrim($spamd['providername']) . ":\\\n");
+ fwrite($fd, "\t:" . rtrim($spamd['providertype']) . ":\\\n");
+ fwrite($fd, "\t:msg=\"" . rtrim($spamd['rejectmessage']) . "\":\\\n");
+ fwrite($fd, "\t:method=" . rtrim($spamd['providermethod']) . ":\\\n");
+ fwrite($fd, "\t:" . rtrim($spamd['providermethod']) . ":\\\n");
+ fwrite($fd, "\t:file=" . rtrim($spamd['providerurl']) . ":\n\n");
}
fclose($fd);
$fd = fopen("/var/mail/whitelist.txt","w");