Forum Programmation.shell procmail avec shell
21
juin
2008
Bonjour,
on a fichier .procmailrc
SHELL=/bin/sh
PATH=/usr/bin
DEFAULT=/home/box1/mail/
MAILDIR=/home/box1/
LOGFILE=$MAILDIR/.procmail.log
INCLUDEDIR=/home/box1/.procmailrc
MAILCOPY=/home/box1/copymail/
:0c:
* ^From.*faia@hotmail.com
/home/box1/copymail/
dont box1 change selon l'utlisateur saisi dans toto.sh
echo le nom de l'utitlisateur
read user
if test ! -d $user
then
useradd $user
else
echo "cette utilisateur existe"
comment mettre en relation un script shell et .procmailrc cad
comment faire pour appel le fichier .procmailrc dans le script shell