From: Frédéric Buclin Date: Sun, 1 Aug 2010 23:05:15 +0000 (+0200) Subject: Bug 547748: Wrong parsing of email_in emails if some @field has no data X-Git-Tag: bugzilla-3.6.2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=522cb58c1ad55509ae3b10b1bdfb4c9e6ef4cd23;p=thirdparty%2Fbugzilla.git Bug 547748: Wrong parsing of email_in emails if some @field has no data r/a=mkanat --- diff --git a/email_in.pl b/email_in.pl index 4254fbbd16..f3172c760e 100755 --- a/email_in.pl +++ b/email_in.pl @@ -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; }