diff options
author | jim-p <jimp@pfsense.org> | 2013-11-05 10:17:29 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-11-05 10:18:30 -0500 |
commit | d8e659b5118ef15dda8eed0f3edcc8a47b12e215 (patch) | |
tree | bd78e32da15ace03f49367f47abe5e1df4625b09 /config/sm.php | |
parent | 3f18def7404d76dbfa10a4f1f0a317f2269805f3 (diff) | |
download | pfsense-packages-d8e659b5118ef15dda8eed0f3edcc8a47b12e215.tar.gz pfsense-packages-d8e659b5118ef15dda8eed0f3edcc8a47b12e215.tar.bz2 pfsense-packages-d8e659b5118ef15dda8eed0f3edcc8a47b12e215.zip |
Fix sendmail formatting for arpwatch
Diffstat (limited to 'config/sm.php')
-rw-r--r-- | config/sm.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/config/sm.php b/config/sm.php index e2c56fc4..2e1cc4a0 100644 --- a/config/sm.php +++ b/config/sm.php @@ -23,6 +23,7 @@ if($options['s'] <> "") { $in = file("php://stdin"); foreach($in as $line){ + $line = trim($line); if ( (substr($line, 0, 6) == "From: ") || (substr($line, 0, 6) == "Date: ") || (substr($line, 0, 4) == "To: ")) @@ -31,7 +32,7 @@ foreach($in as $line){ $subject = substr($line, 9); continue; } - $message .= "$line"; + $message .= "$line\n"; } if (!empty($subject)) |