From 9531496d66cc80ad3a36310ea6adbd200602c364 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 17 Apr 2012 06:35:28 -0700 Subject: [PATCH] Add "X-Auto-Response-Suppress" header to all outgoing mail Summary: This appears to sometimes be effective (for MS clients), and we've seen it in the wild on inbound mail. Test Plan: Sent myself some mail, verified it had the right header. Reviewers: btrahan, vrana, jungejason Reviewed By: vrana CC: aran Maniphest Tasks: T571 Differential Revision: https://secure.phabricator.com/D2241 --- .../metamta/storage/mail/PhabricatorMetaMTAMail.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/applications/metamta/storage/mail/PhabricatorMetaMTAMail.php b/src/applications/metamta/storage/mail/PhabricatorMetaMTAMail.php index 3240ad2e77..8af6df2fde 100644 --- a/src/applications/metamta/storage/mail/PhabricatorMetaMTAMail.php +++ b/src/applications/metamta/storage/mail/PhabricatorMetaMTAMail.php @@ -501,6 +501,9 @@ final class PhabricatorMetaMTAMail extends PhabricatorMetaMTADAO { $mailer->addHeader('X-Phabricator-Sent-This-Message', 'Yes'); $mailer->addHeader('X-Mail-Transport-Agent', 'MetaMTA'); + // Some clients respect this to suppress OOF and other auto-responses. + $mailer->addHeader('X-Auto-Response-Suppress', 'All'); + // If the message has mailtags, filter out any recipients who don't want // to receive this type of mail. $mailtags = $this->getParam('mailtags');