On utilise la base LDAP
darcs-hash:20041004153913-41617-c63b939f0e4c7ddd90bdc637e058559007dcf9ae.gz
This commit is contained in:
parent
437b80b76a
commit
b5fe4034a5
1 changed files with 3 additions and 3 deletions
|
@ -31,15 +31,15 @@ CANEVAS=/tmp/canevas$$
|
|||
trap "rm -f $EMAILS $CANEVAS 2> /dev/null ; exit 5" 1 2 15 0
|
||||
|
||||
# Construction de la liste des adresses mails
|
||||
cat /etc/passwd |grep -v corbeau | awk -F":" '{if ($3>499) print $1"@crans.org"}'>$EMAILS
|
||||
ldapsearch -LLL -x 'uid=*' uid | awk -F': ' '/^uid: / {print $2"@crans.org"}' >$EMAILS
|
||||
|
||||
# Construction du canevas du mail
|
||||
echo "From: nounou <nounou@crans.org>"> $CANEVAS
|
||||
echo "From: Crans <nobody@crans.org>"> $CANEVAS
|
||||
# Edition du mail
|
||||
|
||||
echo -n "Subject: " >> $CANEVAS
|
||||
|
||||
${EDITOR:-"vi"} $CANEVAS
|
||||
${EDITOR:-"jed"} $CANEVAS
|
||||
echo >> $CANEVAS
|
||||
|
||||
# Visualisation du mail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue