Re: [Exim] How do I delete frozen messages?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Odhiambo Washington
Fecha:  
A: exim-users
Asunto: Re: [Exim] How do I delete frozen messages?
* kend@??? <kend@???> [20010814 19:11]: writing on the subject '[Exim] How do I delete frozen messages?'
kend> Okay, it's a dumb question, but I've gone through the docs, and searched for
kend> "delete" and "remove", and gotten nothing that seemed pertinent. The
kend> messages are frozen 'cause the remote site is bogus, so I don't want to
kend> bother with an "exim -qf", but I don't know where to go. Do I just delete
kend> them by hand from the spool directory? That seems inelegant, but, if it's
kend> the "proper" solution, no biggie... but I do want to be sure I'm doing The
kend> Right Thing.
kend>
kend> Thanks!
kend>
kend> Ken D'Ambrosio
kend> Sr. SysAdmin,
kend> Xanoptix, Inc.


Please allow me to also jump into the 'mix' and tell me if what I use is
okay. In simple terms I just delete the frozen messages and those that I
call headerless - the ones with <>
I use the 2 scripts below:


To delete frozen,

#!/bin/sh
mailq | grep frozen | awk '{print "exim -Mrm " $3}' > mailfile
sh mailfile

To delete those with just <> as the From:

#!/bin/sh
mailq | grep '<>' | awk '{print "exim -Mrm " $3}' > mailfile-headerless
sh mailfile-headerless

Am i wrong/using draconian method somewhere?

-Wash

--
Odhiambo Washington
Wananchi Online Ltd.,
wash@??? 1st Flr Loita Hse.
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286,00100-NAIROBI,KE.

The last day of school before summer vacation is the shortest day of a
mother's year.
-Dee Eldrige