Patch: FATAL PLUGIN ERROR [check_basicheaders]: ...
check_basicheaders fails if there are no headers at all: http://bugs.contribs.org/show_bug.cgi?id=6345
This commit is contained in:
parent
461dabc3e1
commit
24d09fa4a9
@ -46,10 +46,11 @@ sub hook_data_post {
|
|||||||
return (DENY, "You have to send some data first")
|
return (DENY, "You have to send some data first")
|
||||||
if $transaction->data_size == 0;
|
if $transaction->data_size == 0;
|
||||||
|
|
||||||
|
my $header = $transaction->header;
|
||||||
return (DENY, "Mail with no From header not accepted here")
|
return (DENY, "Mail with no From header not accepted here")
|
||||||
unless $transaction->header->get('From');
|
unless $header && $header->get('From');
|
||||||
|
|
||||||
my $date = $transaction->header->get('Date');
|
my $date = $header->get('Date');
|
||||||
|
|
||||||
return (DENY, "Mail with no Date header not accepted here")
|
return (DENY, "Mail with no Date header not accepted here")
|
||||||
unless $date;
|
unless $date;
|
||||||
|
Loading…
Reference in New Issue
Block a user