Hi,
I've writte in procmail a notify-function. If there is a file $HOME/.notify
in the Homedirectory of the user, a notify-mail will send to
a email-address in the .notify-File.
Sometimes, Mails comes double in the mailbox, why ?
Here a piece of the code for notifying:
:
:
#########################################################
# Benachrichtigung, falls $HOME/.notify existiert #
# in $HOME/.notify steht Benachrichtigungsadresse #
#########################################################
NOTIFY=`cat $HOME/.notify 2>/dev/null`
:0 c
* !^X-Loop
* !^From: MAILER-DAEMON
* ? echo $NOTIFY | grep "@"
{
:0
* !^X-Loop:
* !^From: MAILER-DAEMON
|(# Benachrichtigung \
echo "X-Loop: $TO";\
echo "To: $NOTIFY";\
echo "From: $TO";\
echo "Subject: eMail von $FROMADR: $SUBJECT"; \
echo ""; \
) | /usr/sbin/sendmail -oi $NOTIFY;\
exit
}
#########################################################
# Ende
#########################################################
Thanks
Hubert
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail