Browse Source

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 years ago
parent
commit
c073e5e5e9
1 changed files with 3 additions and 1 deletions
  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
 		// Note: Swift will add the angle brackets for you
 		// so let's remove the angle brackets if present, for historical reasons
 		// so let's remove the angle brackets if present, for historical reasons
 		$sId = str_replace(array('<', '>'), '', $sId);
 		$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)
 	public function SetReferences($sReferences)