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

r/a=mkanat


git-svn-id: svn://10.0.0.236/trunk@260933 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2010-08-01 23:19:29 +00:00
parent b36b1c69aa
commit 4dd044b6a9
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
7409
7410

View File

@ -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;
}