On Thu, May 18, 2000 at 03:43:05PM +0200, Frank Derichsweiler wrote:
> On Thu, May 18, 2000 at 03:21:36PM +0200, Antoine Martin wrote:
> > Yes thank you, I understand better now, I just have to do a macro that bounce
> > to that dummy user, but I'm not root, so I need another solution :(
> 
> What kind of MTA is on your box? If qmail, you should be able to use
> the address-extensions for that... (.i.e. create a .qmail-notify in
> your $HOME and put the appropriate into it; you bounce then to me-notify).

I think I found a solution : I just have to pipe the message in this shell script
to notify the message sender that I've read his mail. So it will be easy to assign
a macro to this script.

---------------
#!/bin/sh

TO=`tee /tmp/mutt_notify.$USER | formail -R Return-Receipt-To: 
Disposition-Notification-To: | formail -R X-Confirm-Reading-To: 
Disposition-Notification-To: | formail -x Disposition-Notification-To:`
SUBJECT=`formail -x Subject: < /tmp/mutt_notify.$USER`
FROM=`formail -x To: < /tmp/mutt_notify.$USER`
DATE=`date`
if [ -n $TO ] ; then
        echo "Your message has been displayed on the \
        screen of$FROM on $DATE" | mailx -s "NOTIFICATION OF:$SUBJECT" $USER
fi
rm -f /tmp/mutt_notify.$USER
----------------

Antoine

Reply via email to