瀏覽代碼

Bug fix: use the proper way to set the message-ID with Swift

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1754 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 13 年之前
父節點
當前提交
c073e5e5e9
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      core/email.class.inc.php

+ 3 - 1
core/email.class.inc.php

@@ -147,7 +147,9 @@ class EMail
 		// Note: Swift will add the angle brackets for you
 		// so let's remove the angle brackets if present, for historical reasons
 		$sId = str_replace(array('<', '>'), '', $sId);
-		$this->m_oMessage->SetId($sId);
+		
+		$oMsgId = $this->m_oMessage->getHeaders()->get('Message-ID');
+		$oMsgId->SetId($sId);
 	}
 	
 	public function SetReferences($sReferences)