From 657fe1bdfdc301d9274e63f4b9a0b123ad8109b5 Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 29 Jan 2008 22:03:24 +0000 Subject: [PATCH] Just adding some notes git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12899 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index 297cccd2..39ea5103 100644 --- a/src/compose.php +++ b/src/compose.php @@ -878,6 +878,7 @@ function newMail ($mailbox='', $passed_id='', $passed_ent_id='', $action='', $se $request_dr = $mdn_user_support && !empty($orig_header->drnt) ? '1' : '0'; /* remember the references and in-reply-to headers in case of an reply */ +//FIXME: it would be better to fiddle with headers inside of the message object or possibly when delivering the message to its destination (drafts folder?); is this possible? $composeMessage->rfc822_header->more_headers['References'] = $orig_header->references; $composeMessage->rfc822_header->more_headers['In-Reply-To'] = $orig_header->in_reply_to; // rewrap the body to clean up quotations and line lengths @@ -1512,7 +1513,8 @@ function deliverMessage($composeMessage, $draft=false) { } /* Receipt: On Delivery */ - if (isset($request_dr) && $request_dr) { + if (!empty($request_dr)) { +//FIXME: it would be better to fiddle with headers inside of the message object or possibly when delivering the message to its destination; is this possible? $rfc822_header->more_headers['Return-Receipt-To'] = $from->mailbox.'@'.$from->domain; } elseif (isset($rfc822_header->more_headers['Return-Receipt-To'])) { unset($rfc822_header->more_headers['Return-Receipt-To']); -- 2.25.1