[imp] Message Disposition Notifications

Christophe de VIENNE cdevienne at alphacent.com
Mon Mar 10 16:48:07 PST 2003


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

Hi,

I'm currently writting a patch to send Message Disposition Notifications 
(MDNs) when needed.

I do have something working, but the message sent is not yet RFC2298 
compliant, so I'll wait a bit before sending it.

However I do have a question. To be RFC compliant, the envelope sender address 
must be null. Quoting RFC2298:
"
   The envelope sender address (i.e., SMTP MAIL FROM) of the MDN MUST be
   null (<>), specifying that no Delivery Status Notification messages
   or other messages indicating successful or unsuccessful delivery are
   to be sent in response to an MDN.
"

Is it possible to do so with IMP_Compose::sendMessage (I'm using this method 
to send the message) ?


I'd like also, if possible, comments/feedback on the structure I'm 
implementing :

In message.php, if the message is unread, I check the headers and determine 
wether or not I have to send a receipt (The user can specify in the config if 
he wants to send receipts always/never/on demand).

If a receipt is needed, a popup windows is opened and load a new script : 
readreceipt.php (which I will probably rename mdn.php).
This script can be given 3 actionID (which I added in lib/constants.php):
READRECEIPT_SEND, READRECEIPT_CONFIRM, READRECEIPT_CANCEL, and a index 
containing the index of the original message.

I also added a directory imp/templates/readreceipt which contains templates 
for the different actions of readreceipt.php.

The general structure of readreceipt.php is inspired from compose.php.

If my explanations are not clear, feel free to ask me precisions.
I should send a patch to the list by the end of the week.

Best Regards,

Christophe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+bLPIB+sU3TyOQjARAhGiAJ41XYDIA3ryOhkuxKcs+nIbuyQHfACg0QiW
q1cWEifwHmS/dEOHQugDXrc=
=hOPP
-----END PGP SIGNATURE-----



More information about the imp mailing list