Patrick Ben Koetter:
> The current postqueue output format is somewhat like this:
> 
> $ postqueue -p
> ----Queue ID----- --Size-- ---Arrival Time---- --Sender/Recipient------
> 3n97rq4vbmz1gT        2660 Tue Sep  8 03:18:03 dane-users-boun...@sys4.de
>                   (connect to some.server.tld[12.34.56.78]:25: Connection 
> refused)
>                                                lists...@server.tld
> (conversation with some.otherserver.tld[78.90.12.34] timed out while 
> receiving the initial server greeting)
>                                                r...@remote-destination.tld
> 
> 
> I - at least I - find it hard to write scripts that parse this output and
> generate e.g. statistics from it. This is mostly due to the multiline nature 
> of
> the output.

The default output format is sendmail-compatible. The machine-readable
output format was never implemented. The proper fix is:

1) Change the showq daemon to produce machine-readable output.

2) Change the postqueue command to (by default) convert machine-readable
format to legacy sendmail style; other output formats become possible.

        Wietse

Reply via email to