Comment on Installing qmailanalog and Generating daily qmail statistics with (qmail-stats.py) on Debian Lenny / Daily qmail statististics notification via email by Colin.
Hello
Those failures with cannot read +4 and similar messages are caused by old deprecates parameters being used with the sort command used in most of the z* scripts in the qmailanalog package. Have a look here
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578395
at a Debian bug report for some more information. I updated my qmailanalog pscripts as indicated and it fixed it for me..
Regards
Colin