Hello
I am trying to perfect the wheel (aka my vacation recipe) to make
sure that it does not respond to any messages which I do not want it to.
VACATIONMSG=${HOME}/.vacation
PROCDIR=${HOME}/.procmail/
REPLYTO=`formail -rtzxTo:`
# other variable are also setup already
# anything that looks like this: [ ] is a space & tab
# in that order
#
# the comments below are _NOT_ in the real recipe
# I just put them here to you know what I think it does
#
# X-Autoreply: no is added above for all mailing lists I am on
:0ch
* ? test -f $VACATIONMSG # if the vacation message is there
* ! ^X-Autoreply: no # if this header is not present
* ! ? grep -s "$REPLYTO" $PROCDIR/notified # already received
* ^TO(luomat(_at_)*(_dot_)nerc\(_dot_)com|\ # luomat(_at_)nerc(_dot_)com or
@nerc3.nerc.com
luomat(_at_)peak\(_dot_)org # must be sent to one of these
476tjl(_at_)ptsmail\(_dot_)ptsem\(_dot_)edu|\ # to be considered
next-ftp(_at_)peak(_dot_)org) # for response
* ! ^FROM_DAEMON # not from a daemon
* ! ^Subject:[ ](Read Receipt|\ # not 'read receipt'
Returned|\ # or 'Returned'
ACK) # or someone's 'ACK
* ! ^(Sender: nextppp(_at_)chinx1(_dot_)ThoughtPort(_dot_)COM|\ # not from
X-Mailing-List:|\ # any of these
Reply-To: bestserv-replies(_at_)antigone(_dot_)com|\
X-Loop: TopTen(_at_)pobox(_dot_)com)
* ! ^From:.*(Majordomo|\ # these are not caught
abuse|\ # by 'FROM_DAEMON'
spam|\ # or just another check
Owner) # to make sure
* ! ^From .*@(lists\.best|antigone)\.com # not some new list
|( formail -rt -I"From: $FROMSIG" \
-I"Subject: On vacation" \
-I"X-Loop: $MY_ADDR" \
-I"Precedence: junk" ; \
cat $VACATIONMSG ) | $SENDMAIL -oi -t
:0achi: notified.lock
|echo "$REPLYTO" >> $PROCDIR/notified
# end of recipe
Ok, so what have I missed?
Any pointers appreciated
Thanks
TjL
--
TjL <luomat(_at_)peak(_dot_)org> / http://www.peak.org/~luomat/next/
"The best things in life are made into inferior
versions and bundled with the latest Microsoft systems"
NS/OS users: My 'other sites' page has been entirely reworked