Hi,

Postfix 2.5.5 on Debian

I've just noticed a discrepancy between showq (postqueue -p) and postcat. I've looked through the code, played with the conversion code in postcat and I honestly can not figure out what's going wrong:

-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
DBBAD4A340AD      827 Mon Mar  9 10:29:27  root

*** ENVELOPE RECORDS /var/spool/postfix/maildrop/DBBAD4A340AD ***
message_arrival_time: Mon Mar  9 06:29:27 2009

postcat is stating time in GMT (+4 tz for me) and it is performing localtime() on the, supposedly, same seconds value that showq is. The only difference I noticed code-wise was the fact that showq is doing a direct string-to-long conversion whereas postcat is using the REC_TYPE_TIME_SCAN macro to convert the seconds chars directly to tv.tv_sec. Any thoughts? I either need GMT with the tz offset info, or a correct local time, in the postcat output.

Thanks,

GlenB

Reply via email to