Commit 1865ad5e authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Fixed Amavis support, the last Received: header was being accessed in the wrong way

parent 8d1280de
......@@ -137,7 +137,7 @@ sub process_policy {
do_log(5,"policyd/process_policy: Starting");
# Get message ID
my $lastReceived = $msginfo->orig_header_fields->{'received'};
my (undef,undef,$lastReceived) = $msginfo->get_header_field('received',0);
if (!($lastReceived =~ /with E?SMTPS?A? id ([0-9A-Z]+)/)) {
do_log(-1,"policyd/process_policy: Failed to parse in queue id from received line '$lastReceived'");
return $pbn;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment