[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Exim - remove many messages



On Tue, Mar 26, 2002 at 04:01:18AM -0800, Karsten M. Self wrote:
| on Tue, Mar 26, 2002, Rory Campbell-Lange (rory@campbell-lange.net) wrote:
| > This is really a two part message. The first part is about removing many
| > messages from Exim. How does one do that easily, if one has to have
| > the precise id for each?
| > 
| > Secondly, I'd like to make something like the line below work in bash.
| > Exim complains in this case of not finding a message with id "-".
| > 
| > cat /tmp/e | exim -Mrm -
| > 
| > I solved my problem cludgily by making an output file of exim -bp and
| > then vimming it so that it contained a set of "exim -Mrf <id> lines. I
| > then sourced the file.
| > 
| > There must be a more elegant solution without using perl or python.
| 
| ...or awk?

awk's good :-)

| I run the following to reject my long-time frozen messages:
| 
|     $ exim -Mg $( mailq | grep 'frozen' | awk '{print $3}' )

How about putting

# try resending after 15 minutes
auto_thaw = 15m
# if can't send after 8 days, cancel and notify sender
timeout_frozen_after = 8d

In your exim.conf file?  Let exim do it for you :-).  Adjust the time
values to suit.

-D

-- 

Your beauty should not come from outward adornment, such as braided hair
and the wearing of gold jewelry and fine clothes.  Instead, it should be
that of your inner self, the unfading beauty of a gentle and quiet
spirit, which is of GREAT WORTH in God's sight.  For this is the way the
holy women of the past used to make themselves beautiful.
        I Peter 3:3-5


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: