From 20d669c4c3af98fcdff753c729aa4c106c6bd6a7 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sun, 28 Aug 2011 22:51:31 +0000 Subject: [PATCH] As suggested to me by email: very active members of a wiki community can end up receiving hundreds of emails via Special:EmailUser, the majority of which will end up with the boilerplate "{{SITENAME}} email" subject, making them hard to distinguish. Pass the name of the user sending the email to the message, so that it can be at least a little bit more unique. --- includes/specials/SpecialEmailuser.php | 2 +- languages/messages/MessagesEn.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index cc18da9f22..837a58730b 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -61,7 +61,7 @@ class SpecialEmailUser extends UnlistedSpecialPage { ), 'Subject' => array( 'type' => 'text', - 'default' => wfMsgExt( 'defemailsubject', array( 'content', 'parsemag' ) ), + 'default' => wfMsgExt( 'defemailsubject', array( 'content', 'parsemag' ), $this->getUser()->getName() ), 'label-message' => 'emailsubject', 'maxlength' => 200, 'size' => 60, diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index ecafdf4f18..98b37122f9 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2684,7 +2684,7 @@ There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] a 'emailpagetext' => 'You can use the form below to send an e-mail message to this user. The e-mail address you entered in [[Special:Preferences|your user preferences]] will appear as the "From" address of the e-mail, so the recipient will be able to reply directly to you.', 'usermailererror' => 'Mail object returned error:', -'defemailsubject' => '{{SITENAME}} e-mail', +'defemailsubject' => '{{SITENAME}} e-mail from user "$1"', 'usermaildisabled' => 'User e-mail disabled', 'usermaildisabledtext' => 'You cannot send e-mail to other users on this wiki', 'noemailtitle' => 'No e-mail address', -- 2.20.1