headers: added section # to RFC citation

This commit is contained in:
Matt Simerson 2013-03-13 02:26:25 -04:00
parent a0212347bf
commit 548415ea24

View File

@ -126,7 +126,7 @@ sub hook_data_post {
};
my $header = $transaction->header or do {
return $self->get_reject( "missing headers", "missing headers" );
return $self->get_reject( "Headers are missing", "missing headers" );
};
return (DECLINED, "immune") if $self->is_immune();
@ -140,7 +140,7 @@ sub hook_data_post {
next if ! $header->get($h); # doesn't exist
my @qty = $header->get($h);
next if @qty == 1; # only 1 header
return $self->get_reject("Only one $h header allowed. See RFC 5322", "too many $h headers");
return $self->get_reject("Only one $h header allowed. See RFC 5322, Section 3.6", "too many $h headers");
};
my $err_msg = $self->invalid_date_range();