http://qs1969.pair.com?node_id=551388


in reply to Re^2: hashing out lines from mailq...
in thread hashing out lines from mailq...

That code does it, you just have to look for 'Defered' in $entry->{message}. The only other alternative (for sendmail at least) is to parse all of the 'q' files in /var/spool/mqueue, which will almost certainly by more of a pain.

/J\