The man page on sendmail contains a small section on mailq which explains the
display o family. While the postqueue man page says that postqueue -p
implements the mailq command vi shows().
The only mention of 'hold' on either of these man pages is in the description
of the mailq/postqueue -p output status character '!'.
(This is all just background to show that yes, I have dug into the man pages).
What I would like to do is to execute a command that only returns output if
there are messages on hold in the mailq and am wondering if there is a better
way than $(mailq | grep '!') to do this.
--
"Thank you for sending me a copy of your book; I'll waste no time
reading it." - Moses Hadas