Support enable_original_recipient no (#201)

This commit is contained in:
Shawn Iverson 2018-07-12 17:39:50 -04:00 committed by GitHub
parent 481eed1036
commit 39f234785e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -484,7 +484,9 @@ sub new {
# Recipient address
$recdata =~ s/^\<//;
$recdata =~ s/\<$//;
# If recipient is empty only add metadata
push @{$message->{to}}, lc($recdata);
next unless $recdata ne '';
push @{$message->{metadata}}, "$rectype$recdata";
$TOFound = 1;
$ORIGFound = 1;