procmail
[Top] [All Lists]

Re: extract Subject: for auto reply

2004-03-05 09:34:20
On Fri, 05 Mar 2004 15:20:10 +0000 
Lars Hecking said something about Re: extract Subject: for auto reply:

 
OSUBJ=""
NSUBJ="Subject: Out of Office Autoreply RE:"
VERBOSE=1
LOGFILE=$MAILDIR/procmail.log
:0 h c
* !^FROM_DAEMON
* !^X-Loop: me(_at_)myhost(_dot_)com (formail -r -I"Precedence: junk" -A 
"X-Loop:
me(_at_)myhost(_dot_)com" ; echo $NSUBJ; cat vacation.txt)|$SENDMAIL -t

 You need to add 

 * !^Precedence: (bulk|junk)

 to prevent autoreplies to (properly run) mailing lists.



This list uses "Precedence: list" so that should be:

 * !^Precedence: (bulk|junk|list)

-- 
Gerald V. Livingston II

Configure your Email to send TEXT ONLY -- See the following page:
http://expita.com/nomime.html


_______________________________________________
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>