mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
Add an explicit "this mail came from Phabricator" header
Summary: See T926. If you want to write a mail rule that, e.g., captures Differential mail but ignores people replying to it, it's kind of tricky right now. You can use the 'X-Mail-Transport-Agent' header but that's not obvious and it's not necessarily stable. Add a nice, obvious "X-Phabricator-Sent-This-Message" header. Test Plan: Sent myself some mail, verified the header appeared. Reviewers: vrana, btrahan, fugalh, jungejason Reviewed By: jungejason CC: aran, epriestley Maniphest Tasks: T926 Differential Revision: https://secure.phabricator.com/D1732
This commit is contained in:
parent
f6d4cc4896
commit
94daf63ca5
1 changed files with 1 additions and 1 deletions
|
@ -440,9 +440,9 @@ class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO {
|
|||
}
|
||||
}
|
||||
|
||||
$mailer->addHeader('X-Phabricator-Sent-This-Message', 'Yes');
|
||||
$mailer->addHeader('X-Mail-Transport-Agent', 'MetaMTA');
|
||||
|
||||
|
||||
// If the message has mailtags, filter out any recipients who don't want
|
||||
// to receive this type of mail.
|
||||
$mailtags = $this->getParam('mailtags');
|
||||
|
|
Loading…
Reference in a new issue