If you want to delete all frozen message in queue use this script:

#!/bin/sh
for i in `exim -bp | grep frozen | awk '{print $3}'` ; do
  exim -Mrm $i
done

exit 0

Carlo


> -----Messaggio originale-----
> Da: S.D.A. [mailto:[EMAIL PROTECTED]
> Inviato: venerd́ 5 marzo 2004 17.08
> A: Debian User List
> Cc: S.D.A.
> Oggetto: Re: exim "Frozen" messages?
>
>
> On Fri, Mar 05, 2004 at 10:56:46AM -0500 or thereabouts, Rick Pasotto
> wrote:
> > On Fri, Mar 05, 2004 at 10:40:31AM -0500, S.D.A. wrote:
>
> > > Dman -- Is there a way to do this with all the que'ed messages at
> once?
> > >
> > > I just looked and I have almost 50 messages in the mailq. Very time
> > > consuming to do each one by one.
> >
> > The command is really
> >
> > exim -Mrm <list of ids>
> >
> > Cut-n-paste (dbl-click on output of mailq then middle-click) works
> well
> > but I suppose you could write a script to parse the output of mailq.
>
> Well yah, I can do that (that's not what I'm asking tho, I do know how
> to do this, although I don't know why one would use a 'double click',
> simply higlighting the line, copies it). I guess a script is in order, I
> was hoping there was a command to do it all in one swoop (what's in the
> mailq).
>
> --
> Steve
> +++++++++++++++++++++++++++++++++++++++++++++
>   Friday Mar 05 2004 11:01:01 EST
> +++++++++++++++++++++++++++++++++++++++++++++
> Snakes.  Why did it have to be snakes?
>               -- Indiana Jones, "Raiders of the Lost Ark"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to