From: <pdo...@us...> - 2021-05-12 05:12:06
|
Revision: 14921 http://sourceforge.net/p/squirrelmail/code/14921 Author: pdontthink Date: 2021-05-12 05:12:06 +0000 (Wed, 12 May 2021) Log Message: ----------- Make sure drafts are sent with the current date and not that of its previous 'Save Draft' action Modified Paths: -------------- branches/SM-1_4-STABLE/squirrelmail/src/compose.php Modified: branches/SM-1_4-STABLE/squirrelmail/src/compose.php =================================================================== --- branches/SM-1_4-STABLE/squirrelmail/src/compose.php 2021-05-08 03:11:33 UTC (rev 14920) +++ branches/SM-1_4-STABLE/squirrelmail/src/compose.php 2021-05-12 05:12:06 UTC (rev 14921) @@ -1666,6 +1666,11 @@ $rfc822_header = $composeMessage->rfc822_header; + // clear Date header so drafts don't end up with a stale date + // (does this cause issues with some other scenario where a + // message with an existing date header should be preserved??) + unset($rfc822_header->date); + $abook = addressbook_init(false, true); $rfc822_header->to = $rfc822_header->parseAddress($send_to,true, array(), '', $domain, array(&$abook,'lookup')); $rfc822_header->cc = $rfc822_header->parseAddress($send_to_cc,true,array(), '',$domain, array(&$abook,'lookup')); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |