* J�r�me Brun [16:12 26/06/02]:
Bonjour tout le monde,
j'aimerai savoir comment faire pour qu'en mon absence les personnes qui
m'�crivent aie un message standard ?
l� j'avoue que je n'ai aucune id�e du comment .....
Avec procmail voila comment je fait :
Je place cette r�gle (directement pomp�e dans man procmailex)
� la fin de mon .procmailrc (ainsi toutes les mails de mes mailings
lists sont rang�s o� il faut et en plus elles ne sont pas d�rang�es)
:0 Whc: vacation.lock
* ? test -e vacation.cache
* ^To:.*nicoe
* !^FROM_DAEMON
* !^X-Loop: [EMAIL PROTECTED]
| formail -rD 8192 vacation.cache
:0 ehc
| (formail -rI"Precedence: junk"\
-A"X-Loop: [EMAIL PROTECTED]" ; \
cat $HOME/.vacation.msg; \
echo "-- "; cat $HOME/.signature \
) | $SENDMAIL -oi -t
Voila aussi un script qui permet de faire
* vacances on quand on part en vacances
* vacances off quand on revient ...
#!/bin/zsh
VACATION_CACHE=$HOME/Mail/vacation.cache
usage()
{
echo
echo "vacances usage"
echo "--------------"
echo
echo " $ vacances [on|off]"
echo
echo " on : turn on the vacation program"
echo " off : turn off the vacation program"
echo
echo " vacances used without argument show the current"
echo " status of vacances"
echo
}
if [[ -z $1 ]] then
if [[ -e $VACATION_CACHE ]] then
echo vacances is on
else
echo vacances is off
fi
elif [[ $1 == on ]] then
touch $VACATION_CACHE
echo "Do not forget to change your .vacation.msg !!"
elif [[ $1 == off ]] then
rm $VACATION_CACHE
else
usage
fi
Voila HTH ...
--
(�> Nicolas �vrard
/ ) Li�ge - Belgique
^^
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]