Package: pflogsumm
Version: 1.1.5-7
Severity: normal
Dear maintainer,
I use pflogsumm on a Bullseye system, to analyze Postfix 3.5.17 logs. It
is possible my setup has some oddities, but while pflogsumm is globally
working, it fails to count sent emails:
$ pflogsumm my_log_file
[...]
0 sending hosts/domains
[...]
Host/Domain Summary: Messages Received
---------------------------------------
msg cnt bytes host/domain
-------- ------- -----------
Senders by message count: none
[...]
Senders by message size: none
[...]
A friend of mine suggested a very small change in pflogsumm, which seems
to make it working properly. Here si the diff before and after the fix:
804c805,806
< if($rcvdMsg{$qid}) {
---
> if($rcvdMsg{$qid} == '') {
But it si still not perfect, because now errors are printed before the
actual report:
Argument "" isn't numeric in numeric eq (==) at
/usr/local/sbin/pflogsumm line 806, <> line 56.
Use of uninitialized value within %rcvdMsg in numeric eq (==) at
/usr/local/sbin/pflogsumm line 806, <> line 56.
[...]
Use of uninitialized value $domAddr in hash element at
/usr/local/sbin/pflogsumm line 814, <> line 1272.
[...]
Use of uninitialized value within %rcvdMsg in numeric eq (==) at
/usr/local/sbin/pflogsumm line 806, <> line 1294.
Hope this help.
Regards,
Yvan