aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd_db.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-30 02:05:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-30 02:05:30 +0000
commit56616be63beaae413a4fccf1459d53c6ef66cb1c (patch)
tree62411135310a4738e7e44325dc2ed5706d2c18d3 /packages/spamd_db.php
parent75b1a03eab4e5a084aec8cab9fcda62345d38cb6 (diff)
downloadpfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.tar.gz
pfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.tar.bz2
pfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.zip
* Allow really long emails to be wrapped
* Misc comments
Diffstat (limited to 'packages/spamd_db.php')
-rw-r--r--packages/spamd_db.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/spamd_db.php b/packages/spamd_db.php
index 2d25daf6..06b92705 100644
--- a/packages/spamd_db.php
+++ b/packages/spamd_db.php
@@ -65,6 +65,7 @@ if($_GET['action'] or $_POST['action']) {
/* spam trap e-mail address */
if($_POST['spamtrapemail'] <> "") {
mwexec("spamdb -T -a \"<{$_POST['spamtrapemail']}>\"");
+ mwexec("killall -HUP spamlogd");
$savemsg = $_POST['spamtrapemail'] . " added to spam trap database.";
}
@@ -208,6 +209,11 @@ if (typeof getURL == 'undefined') {
/* don't display if column blank */
$col = str_replace("<","",$col);
$col = str_replace(">","",$col);
+ /* if string is really long allow it to be wrapped by
+ * replacing @ with space@
+ */
+ if(strlen($col)>40)
+ $col = str_replace("@"," @",$col);
$rowtext .= "<td class=\"listr\">{$col}</td>";
$column++;
}