Commit 0422ceb1 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 584018: @foo= bar in email_in.pl is not parsed correctly, due to a missing…

Bug 584018: @foo= bar in email_in.pl is not parsed correctly, due to a missing whitespace before "=" r/a=mkanat
parent 96b6cc3c
...@@ -106,7 +106,7 @@ sub parse_mail { ...@@ -106,7 +106,7 @@ sub parse_mail {
# Otherwise, we stop parsing fields on the first blank line. # Otherwise, we stop parsing fields on the first blank line.
$line = trim($line); $line = trim($line);
last if !$line; last if !$line;
if ($line =~ /^\@(\S+)\s*(?:=|\s|$)\s*(.*)\s*/) { if ($line =~ /^\@(\w+)\s*(?:=|\s|$)\s*(.*)\s*/) {
$current_field = lc($1); $current_field = lc($1);
$fields{$current_field} = $2; $fields{$current_field} = $2;
} }
......
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