Commit dc57a411 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 431704: Remove useless newlines in replies sent by email_in.pl - Patch by…

Bug 431704: Remove useless newlines in replies sent by email_in.pl - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=mkanat a=LpSolit
parent 681cd783
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment