瀏覽代碼

Merge branch 'trunk' into master

Andy 4 年之前
父節點
當前提交
8a1379a66b
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/compose.php

+ 5 - 0
src/compose.php

@@ -1731,6 +1731,11 @@ function deliverMessage(&$composeMessage, $draft=false) {
 
     $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'));