----- Original Message -----
From: "Len Conrad" <[EMAIL PROTECTED]>
> >Here is an even simpler one:
> >
> >mailq | awk '/[EMAIL PROTECTED]/ { print $1 }' | postsuper -d -
>
> $1 can have a trailing "*" when the msg is in incoming queue.
>
> mailq | awk '/[EMAIL PROTECTED]/ { print $1 }' | tr -d "*" |
postsuper
> -d -
>
> # echo "dlakhafdf*" | tr -d "*"
> dlakhafdf
The trailing "*" is a message that is in the process of a delivery attempt.
I would strongly advise against using "tr -d "*"" and deleting messages that
are in the middle of a delivery attempt, as you may end up deleting messages
that you shouldn't have.
Bill