From dac48ba3875e23c64ba9d79f81705bc5e84a9fc4 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 2 Aug 2010 01:02:45 +0200 Subject: Bug 547748: Wrong parsing of email_in emails if some @field has no data r/a=mkanat --- email_in.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'email_in.pl') diff --git a/email_in.pl b/email_in.pl index 6033c31c4..fd86bcecf 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; } -- cgit v1.2.3-24-g4f1b