summaryrefslogtreecommitdiffstats
path: root/email_in.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-05-14 05:28:12 +0200
committerlpsolit%gmail.com <>2008-05-14 05:28:12 +0200
commitdc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5 (patch)
tree72435e4d9b2721b48a4051403144ca859cf55309 /email_in.pl
parent681cd7831ae57a1f359601c3ff2533204d385a2d (diff)
downloadbugzilla-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.gz
bugzilla-dc57a4117a58ce2c6ef58c5ea37d6ebc6ebc9fd5.tar.xz
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
Diffstat (limited to 'email_in.pl')
-rw-r--r--email_in.pl4
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/\&gt;/>/g;
$var =~ s/\&quot;/\"/g;
$var =~ s/&#64;/@/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;