Victor Duchovni <[EMAIL PROTECTED]> wrote:
> > How is the output of cut in last example "garbage"?
>
> What do you see when you run:
>
> mailq | cut -d '*' -f 1 | less
That is not what I wrote; one has to grep for the sender address first,
pass the resulting lines to cut and then pipe to "postsuper -h -".
Though I think instead of dismissing cut, we could just pass the "-s"
flag which will suppress lines that lack the chosen delimiter. For
example, this line returns nothing if Postfix has no messages in the
active queue:
% mailq | grep [EMAIL PROTECTED] | cut -s -d "*" -f 1 | less
> is it sensible input for "postsuper -d -"
Probably just a typo above, but for posterity, this thread is about
holding (not deleting) messages in the queue from a specific sender.
--
Sahil Tandon <[EMAIL PROTECTED]>