diff options
author | lpsolit%gmail.com <> | 2008-05-14 03:28:12 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-05-14 03:28:12 +0000 |
commit | dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5 (patch) | |
tree | 72435e4d9b2721b48a4051403144ca859cf55309 | |
parent | 681cd7831ae57a1f359601c3ff2533204d385a2d (diff) | |
download | bugs-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar bugs-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.gz bugs-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.bz2 bugs-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.xz bugs-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.zip |
Bug 431704: Remove useless newlines in replies sent by email_in.pl - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
-rw-r--r-- | email_in.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl index 81637ebc4..12be24471 100644 --- a/email_in.pl +++ b/email_in.pl @@ -287,6 +287,8 @@ sub html_strip { $var =~ s/\>/>/g; $var =~ s/\"/\"/g; $var =~ s/@/@/g; + # Also remove undesired newlines and consecutive spaces. + $var =~ s/[\n\s]+/ /gms; return $var; } @@ -312,7 +314,7 @@ sub die_handler { my $reply = reply(to => $input_email, top_post => 1, body => "$msg\n"); MessageToMTA($reply->as_string); } - print STDERR $msg; + print STDERR "$msg\n"; # We exit with a successful value, because we don't want the MTA # to *also* send a failure notice. exit; |