diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-30 02:05:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-30 02:05:30 +0000 |
commit | 56616be63beaae413a4fccf1459d53c6ef66cb1c (patch) | |
tree | 62411135310a4738e7e44325dc2ed5706d2c18d3 | |
parent | 75b1a03eab4e5a084aec8cab9fcda62345d38cb6 (diff) | |
download | pfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.tar.gz pfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.tar.bz2 pfsense-packages-56616be63beaae413a4fccf1459d53c6ef66cb1c.zip |
* Allow really long emails to be wrapped
* Misc comments
-rw-r--r-- | packages/spamd_db.php | 6 |
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++; } |