I would like to use procmail to send automatically a message during my
absence.
What's wrong whith my .forward and .procmailrc files ?
I'm on a workstation HP-UX 9.07 using /usr/lib/sendmail as MUA.
$HOME/.forward =
---------------------
"|IFS=' `&&exec /users/degeilh/local/bin/procmail -f-||exit 75 #degeilh"
---------------------
$HOME/.procmailrc =
---------------------
SHELL=/bin/sh
SENDMAIL=/usr/lib/sendmail
PATH=$PATH:$HOME/local/bin
:0 Whc: vacation.lock
* !^FROM_DAEMON
* !^X-Loop: Laurent(_dot_)Degeilh(_at_)meteo(_dot_)fr
| formail -rD 8192 vacation.cache
:0 ehc # if the name was not in the cache
| formail -rA"Precedence: junk" \
-A"X-Loop: Laurent(_dot_)Degeilh(_at_)meteo(_dot_)fr" ; \
echo "J ai bien recu votre e-mail,"; \
echo "Mais je suis absent pour le moment."; \
cat $HOME/.signature \
) | $SENDMAIL -oi -t
---------------------
Any clues ???
| PMS Laurent DEGEILH METEOFRANCE/SCEM/PREVIMAR |
| 42,Av G. Coriolis Tel = (33/0) 5 61 07 82 63 |
| 31057 TOULOUSE Fax = (33/0) 5 61 07 82 09 |
| FRANCE e-mail = Laurent(_dot_)Degeilh(_at_)meteo(_dot_)fr |