Add List-Unsubscribe header to emails
Bug: T58315 Change-Id: I5fb9cc6be78338819b9766456923e59f4fdee35c
This commit is contained in:
parent
c5c5a90114
commit
b2a043f1ef
1 changed files with 2 additions and 0 deletions
|
|
@ -206,6 +206,8 @@ class UserMailer {
|
|||
$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
|
||||
|
|
|
|||
Loading…
Reference in a new issue