support NULL envelopes again (doh, typo of the week :-) )
git-svn-id: https://svn.perl.org/qpsmtpd/trunk@278 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
e27534048c
commit
42719a179f
@ -227,7 +227,7 @@ sub mail {
|
||||
my $from_parameter = join " ", @_;
|
||||
$self->log(LOGINFO, "full from_parameter: $from_parameter");
|
||||
|
||||
my ($from) = ($from_parameter =~ m/^from:\s*(<[^>]+>)/i)[0];
|
||||
my ($from) = ($from_parameter =~ m/^from:\s*(<[^>]*>)/i)[0];
|
||||
|
||||
# support addresses without <> ... maybe we shouldn't?
|
||||
($from) = "<" . ($from_parameter =~ m/^from:\s*(\S+)/i)[0] . ">"
|
||||
|
Loading…
Reference in New Issue
Block a user