procmail
[Top] [All Lists]

Re: vacation recipe

1997-09-11 17:09:21
I'm just getting started, too, and had the same trouble. I think the
leading '$' on the first condition is a typo. A template for my version
is attached. I threw in the "$SUBJECT" variable to provide the same
functionality as the "vacation" program.

--
Bradley Holdridge
holdridg(_at_)cig(_dot_)mot(_dot_)com
SUBJECT=`$FORMAIL -xSubject: | sed -e 's/^ *//'`

:0 Whc: vacation.lock
* ^(To:|Cc:).*(username@|\
               alt-username(_at_)alt-domain)
* !^FROM_DAEMON
* !^X-Loop: username(_at_)domain
| $FORMAIL -rD 8192 $HOME/.vacation.cache

  :0 ehc
  | ($FORMAIL -rA"Precedence: junk" \
              -A"X-Loop: username(_at_)domain" ; \
              sed -e "s/\$SUBJECT/$SUBJECT/" $HOME/.vacation.msg | /usr/ucb/fmt 
-75 ; \
              echo "-- " ; \
              echo "Your full name here" \
    ) | $SENDMAIL -oi -t
<Prev in Thread] Current Thread [Next in Thread>