1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Don't double-generate message IDs.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-09 16:46:33 -08:00
parent 91fb157253
commit b7801c44fe

View file

@ -51,7 +51,11 @@ class PhabricatorMailImplementationPHPMailerLiteAdapter
}
public function addHeader($header_name, $header_value) {
$this->mailer->AddCustomHeader($header_name.': '.$header_value);
if (strtolower($header_name) == 'message-id') {
$this->mailer->MessageID = $header_value;
} else {
$this->mailer->AddCustomHeader($header_name.': '.$header_value);
}
return $this;
}