procmail
[Top] [All Lists]

Re: Autoresponder

2003-09-05 08:45:47
On Fri, 05 Sep 2003 15:12:29 +0200, Steffen Bisgaard - Xtrasource <sbisgaard(_at_)xtrasource(_dot_)com> wrote:

Hallo List,

This might be trivial, but can you confirm that the below script will not
keep the mail on the server but delete it once it has sent of an autoreply
(except for the *bbs* part) ?

SHELL=/bin/sh

:0 h c
* !^FROM_DAEMON
* !^From:.*bbs*
* !^X-Loop:someone(_at_)somewhere(_dot_)com
| (formail -r -I"Precedence: junk" \
 -A"X-Loop: someone(_at_)somewhere(_dot_)com" ; \
cat $HOME/.autoreply ) | $SENDMAIL -t

Kind Regards,


The 'c' on the top of the recipe causes procmail to spawn a copy of the process and continue past the recipe, in effect causing it to be processed by the next one. Just remove that 'c' and it will just send the autoreply and stop there.

Procmail will stop processing a message when it has either "delivered" it. "Delivery" includes saving it in a mailbox file or giving it to a shell script (with a "|".) Unless, the "c" option is use to clone the message.

        dZ.


--
| DZ vs. THE WORLD...
|  Hating anything, everything and everyone since 1994.
`----- - -- -  -   -     -

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>