diff options
Diffstat (limited to 'email_in.pl')
-rwxr-xr-x | email_in.pl | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |