[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mail en absence



* 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: nicoe@wanadoo.be
| formail -rD 8192 vacation.cache

:0 ehc
  | (formail -rI"Precedence: junk"\
             -A"X-Loop: nicoe@wanadoo.be" ; \
             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 debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: