corresponding to the patch for pmg-log-tracker, we need to translate the
before queue status to 'Accept' + the status of the relayed mail.
Reviewed-By: Mira Limbeck <m.limbeck@proxmox.com>
Tested-By: Mira Limbeck <m.limbeck@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
$new->{client} = $entry->{client} if defined($entry->{client});
$new->{msgid} = $entry->{msgid} if defined($entry->{msgid});
$new->{time} = hex($1) - $timezone;
$new->{client} = $entry->{client} if defined($entry->{client});
$new->{msgid} = $entry->{msgid} if defined($entry->{msgid});
$new->{time} = hex($1) - $timezone;
- $new->{qid} = $2;
- $new->{dstatus} = $3;
+ $new->{dstatus} = my $dstatus = $3;
+ $new->{qid} = my $qid = $2;
+ $new->{to} = my $to = $5;
+ if ($dstatus =~ /P|D|R/) {
+ my $before_queue_status = {
+ P => '2',
+ D => '4',
+ R => '5',
+ };
+ $new->{dstatus} = 'A';
+ $new->{rstatus} = $before_queue_status->{$dstatus};
+ }
+
- $lookup_hash->{$2}->{$5} = $new;
+ $lookup_hash->{$qid}->{$to} = $new;
} elsif ($line =~ m/^(SMTP|FILTER|QMGR):/) {
if ($logids->{$entry->{qid}}) {
$state = 'logs';
} elsif ($line =~ m/^(SMTP|FILTER|QMGR):/) {
if ($logids->{$entry->{qid}}) {
$state = 'logs';