Commit dac48ba3 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 547748: Wrong parsing of email_in emails if some @field has no data

r/a=mkanat
parent 21c69e6b
......@@ -106,7 +106,7 @@ sub parse_mail {
# Otherwise, we stop parsing fields on the first blank line.
$line = trim($line);
last if !$line;
if ($line =~ /^\@(\S+)\s*(?:=|\s)\s*(.*)\s*/) {
if ($line =~ /^\@(\S+)\s*(?:=|\s|$)\s*(.*)\s*/) {
$current_field = lc($1);
$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