# mailqto - summarize hosts for which there is deferred mail
# Steve Kinzler, kinzler@cs.indiana.edu, 5 Oct 1991
# mailqto.faces - faces script to monitor the hosts for which there is
# deferred mail
# Steve Kinzler, kinzler@cs.indiana.edu, 6 Oct 1991
You need "perl" and a "mailq" command with output formatted similar to this:
Mail Queue (5 requests)
--QID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
AA11255 122 Sun Oct 6 11:40 <cnall00@mik.uky.edu>
(Deferred: Network is unreachable)
<bsu-cs!tex@iuvax.cs.indiana.edu>
...
-- from the brain of Steve Kinzler /o)\ kinzler@iuvax.cs.indiana.edu an organ with a mind of its own \(o/ {ames,rutgers}!iuvax!kinzler