I'm just getting started using procmail, and am having a great deal of
trouble getting this modified procmailex vacation recipe to work.
Simplier fuctions work just fine. Can anyone see what's wrong? TIA
SHELL=/bin/sh # for other shells, this might need adjustment
:0 Whc: vacation.lock
# Perform a quick check to see if the mail was addressed
* $^To:.*\<$\bbrace\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: bbrace(_at_)wired(_dot_)com
* !^X-Loop: bbrace(_at_)get(_dot_)wired(_dot_)com
* !^X-Loop: bbrace(_at_)netcom(_dot_)com
| formail -rD 8192 vacation.cache
:0 ehc # if the name was not in the cache
| (formail -rA"Precedence: junk" \
-A"X-Loop: bbrace(_at_)wired(_dot_)com" ; \
-A"X-Loop: bbrace(_at_)get(_dot_)wired(_dot_)com" ; \
-A"X-Loop: bbrace(_at_)netcom(_dot_)com" ; \
echo "just a test";\
echo "Auto-Reply: I received your mail,"; \
echo "but I won't be back until later."; \
echo "If your message came from a Wired domain,";\
echo "it was also forwarded to my Netcom account,";\
echo "which I monitor while not at Work.";\
echo "-- "; cat $HOME/sig2 \
) | $SENDMAIL -oi -t
--
--
brad brace <bbrace(_at_)wired(_dot_)com>
prepress specialist
wired magazine, sfo
\|/ ____ \|/
@~/ Oo \~@
/_( \__/ )_\
\__U_/