#18625559 : add reference field to mail header

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7181 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2010-01-20 01:31:58 +00:00
parent ac6a68607b
commit b9b9ebc00a

View file

@ -22,6 +22,7 @@
var $body = '';
var $header = '';
var $eol = '';
var $references = '';
function Mail() { }
@ -73,6 +74,10 @@
$this->messageId = $messageId;
}
function setReferences($references) {
$this->references = $references;
}
function setReplyTo($replyTo)
{
$this->replyTo = $replyTo;
@ -207,11 +212,13 @@
"%s".
"%s".
"%s".
"%s".
"MIME-Version: 1.0".$this->eol."",
$this->getSender(),
$this->messageId?("Message-ID: <".$this->messageId.">".$this->eol):"",
$this->replyTo?("Reply-To: <".$this->replyTo.">".$this->eol):"",
$this->bcc?("Bcc: ".$this->bcc.$this->eol):""
$this->bcc?("Bcc: ".$this->bcc.$this->eol):"",
$this->references?("References: <".$this->references.">".$this->eol."In-Reply-To: <".$this->references.">".$this->eol):""
);
$headers .= $this->header;