aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/spamd.inc14
-rw-r--r--packages/spamd.xml6
2 files changed, 11 insertions, 9 deletions
diff --git a/packages/spamd.inc b/packages/spamd.inc
index 211c2ff1..e2fc15c0 100644
--- a/packages/spamd.inc
+++ b/packages/spamd.inc
@@ -20,12 +20,14 @@ function sync_package_spamd() {
fwrite($fd, "\n# begin of user created entries\n");
if($config['installedpackages']['spamd']['config'] != "") {
foreach($config['installedpackages']['spamd']['config'] as $spamd) {
- 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");
+ if(rtrim($spamd['providername'])) {
+ 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);
diff --git a/packages/spamd.xml b/packages/spamd.xml
index 38229f22..743179ee 100644
--- a/packages/spamd.xml
+++ b/packages/spamd.xml
@@ -6,7 +6,7 @@
<title></title>
<!-- Menu is where this packages menu will appear -->
<menu>
- <name>spamd</name>
+ <name>SpamD</name>
<section>Services</section>
<configfile>spamd.xml</configfile>
</menu>
@@ -17,12 +17,12 @@
</service>
<tabs>
<tab>
- <text>spamd Settings</text>
+ <text>SpamD Settings</text>
<url>/pkg.php?xml=spamd.xml</url>
<active/>
</tab>
<tab>
- <text>spamd Whitelist</text>
+ <text>SpamD Whitelist</text>
<url>/pkg.php?xml=spamd_whitelist.xml</url>
</tab>
</tabs>