OK, based on the following, I'd like to call the vacation rcfile,
and if the test for the .vacation file fails, drop down to the
rc.autoreply rcfile. Any ideas? Maybe the two can be combined
somehow, but I'm overlooking something simple, I'm sure, as I
can't get the fallthrough to work.
#
# Various procmail recipies go here
[ blah ]
#
INCLUDERC=$PMDIR/rc.vacation
INCLUDERC=$PMDIR/rc.autoreply
# end .procmailrc file
#
Here's the last two:
# rc.autoreply - the day-to-day auto-responder
SUBJHEAD=`formail -x Subject:`
:0 Whc: auto-reply.lock
* !^FROM_DAEMON
* !^X-Loop: loopitherebud(_at_)halcyon(_dot_)com
| formail -rD 32768 auto-reply.cache
:0 ehc
| (formail -rI"Subject: Your e-mail re: '$SUBJHEAD '" -A"Precedence: junk" \
-A"X-Loop: loopitherebud(_at_)halcyon(_dot_)com" ; \
cat $HOME/auto-reply.msg ; \
) | $SENDMAIL -oi -t
# vacation/autoreply recipe
SUBJHEAD=`formail -x Subject:`
:0 Whc: vacation.lock
## put a .vacation file (can be empty) in $HOME to activate and
## remember to remove it when back in the office
#
? test -r $HOME/.vacation
!^FROM_DAEMON
!^X-Loop: anotherlooptest(_at_)halcyon(_dot_)com
| formail -rD 32768 vacation.cache
:0 ehc
| (formail -rI"Subject: Re:$SUBJHEAD [autoreply to your email]"
-A"Precedence: junk" \
-A"X-Loop: anotherlooptest(_at_)halcyon(_dot_)com" ; \
echo "Your mail entitled '$SUBJHEAD ' has been received." ; \
cat $HOME/vacation.msg ; \
echo "-- " ; \
cat $HOME/.signature \
) | $SENDMAIL -oi -t