<<< Date Index >>>     <<< Thread Index >>>

Re: How to send a return receipt



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, October 12 at 08:22 PM, quoth Patrick Schoenfeld:
> Well, mutt can a lot but as I figured it does not support mail 
> notificiation as usual, but yes possibly there are ways to reach the 
> goal of mail notifications anyway -- at least somewhat like that. 
> The problem is that I actually don't see a definitive way to do it, 
> thats why I am asking it here.

Well, the first thing that springs to my mind is some sort of 
message-hook (since that's what triggers when you view a message).

     message-hook '~h Disposition-Notification-To:' 'do-something'

The question then becomes: what should "do-something" be in that hook? 
Well, it can easily be a script of some sort, and that script could 
ask the user "do you want to send a disposition notification?" and act 
on the response. The only tricky part is getting that script to know 
who the notification should be sent to, and any other details of the 
message that it needs to know to generate the notification (I haven't 
read RFC 2298 thoroughly, so I don't know what all needs to be sent). 
It seems to me that you'd need a full copy of the message... so what 
the message-hook would need to do is something like this:

     message-hook '~h Disposition-Notification-To:' \
         '<pipe-message>send-mdn.sh<enter>'

Then, of course, you'd need to write send-mdn.sh to parse the message, 
pull out the required headers and other data, generate a response, and 
send it (possibly calling mutt to do so).

I've never played with MDNs before, so I don't know what you'd need, 
but my guess is that in that script you can simply use formail (or 
DJB's 822field utility) to extract all the relevant headers, prompt 
the user as necessary, and so forth.

Is that helpful?

~Kyle
- -- 
Unthinking respect for authority is the greatest enemy of truth.
                                                     -- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFHD8UABkIOoMqOI14RAqx/AKCqasd3+vHxsUwoYEUP4/zmNVORhgCfXWTM
fhnxBPqNilUyJFY2pf9DFX8=
=K8wC
-----END PGP SIGNATURE-----