Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^2: hashing out lines from mailq...

by perlknight (Pilgrim)
on May 24, 2006 at 14:54 UTC ( #551381=note: print w/replies, xml ) Need Help??

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

Thanks. How would I go about geting the following for all deferred messages: qid, from, all recipients? Is there a better way of doing this besides parsing the output of mailq with regex? Thanks.

Replies are listed 'Best First'.
Re^3: hashing out lines from mailq...
by gellyfish (Monsignor) on May 24, 2006 at 15:03 UTC

    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.


Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://551381]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2023-03-24 19:01 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (61 votes). Check out past polls.