jenkins-bot has submitted this change and it was merged. Change subject: Add List-Unsubscribe header to emails ......................................................................
Add List-Unsubscribe header to emails Bug: T58315 Change-Id: I5fb9cc6be78338819b9766456923e59f4fdee35c --- M includes/mail/UserMailer.php 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: Mattflaschen: Looks good to me, approved 01tonythomas: Looks good to me, but someone else must approve jenkins-bot: Verified diff --git a/includes/mail/UserMailer.php b/includes/mail/UserMailer.php index 3cabdae..8264673 100644 --- a/includes/mail/UserMailer.php +++ b/includes/mail/UserMailer.php @@ -206,6 +206,8 @@ $headers['Date'] = MWTimestamp::getLocalInstance()->format( 'r' ); $headers['Message-ID'] = self::makeMsgId(); $headers['X-Mailer'] = 'MediaWiki mailer'; + $headers['List-Unsubscribe'] = '<' . SpecialPage::getTitleFor( 'Preferences' ) + ->getFullURL( '', false, PROTO_CANONICAL ) . '>'; # Line endings need to be different on Unix and Windows due to # the bug described at http://trac.wordpress.org/ticket/2603 -- To view, visit https://gerrit.wikimedia.org/r/213185 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5fb9cc6be78338819b9766456923e59f4fdee35c Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: 01tonythomas <01tonytho...@gmail.com> Gerrit-Reviewer: BryanDavis <bda...@wikimedia.org> Gerrit-Reviewer: Jgreen <jgr...@wikimedia.org> Gerrit-Reviewer: Mattflaschen <mflasc...@wikimedia.org> Gerrit-Reviewer: Nemo bis <federicol...@tiscali.it> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits