Hi,
I'm confused with this...will you help?
I just want to delete many messages from a sender in *mailq* but it
seems I couldn't hit it right.
#man postsuper:
----snip----
-d queue_id
Delete one message with the named queue ID from the named
mail queue(s) (default: hold, incoming,
active and deferred). If a queue_id of - is specified,
the program reads queue IDs from standard
input. For example, to delete all mail from or to
[EMAIL PROTECTED]:
mailq | tail +2 | awk <B4>BEGIN { RS = "" } \
/ user@example\.com$/ { print $1 } \
<B4> | tr -d '*!' | postsuper -d -
Specify -d ALL to remove all messages; for example,
specify -d ALL deferred to delete mail in the
deferred queue. As a safety measure, the word ALL must
be specified in upper case.
------snip------
How will I type this in an actual command-line and what is meant by <B4>?
How will I make this as a script file?
Thanks.
Jun
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph
To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]
