RE: [Exim] (how does one ) remove items from the queue ?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Terry Shows
Dátum:  
Címzett: Jonathan Vanasco, exim-users
Tárgy: RE: [Exim] (how does one ) remove items from the queue ?
Try this script.. It is pretty simple, but gets the job done.

-------------- clean_que.sh --------------------
#! /bin/sh
PATH=$PATH:/usr/exim/bin
export PATH
for msg in `mailq|awk '{print $3}'`
do
        echo "================================================="
        echo "Message ID: $msg"
        exim -Mvh $msg | grep "From:"
        exim -Mvh $msg | grep "To:"
        echo "================================================="
        echo -n "Delete this message ?"
        read ans
        if [ "$ans" = "Q" ] || [ "$ans" = "q" ]
        then
                exit
        fi


        if [ "$ans" = "Y" ] || [ "$ans" = "y" ]
        then
                exim -Mrm $msg
        else
                echo "Message $file has been skipped"
        fi
done
------------------------------------------------------------------


-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org]On
Behalf Of Jonathan Vanasco
Sent: Wednesday, September 03, 2003 10:58 AM
To: exim-users@???
Subject: [Exim] (how does one ) remove items from the queue ?


i run:
#exim -bp

and get a listing of messages in the queue. great.

now i need to delete certain ones

is a 'proper' way to do this?


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##