If a user creates a Wikimedia account and verifies their email address, their preferences are automatically configured to allow direct email from other users.
These emails do not include links in the footer to adjust any preferences. The user may want to disable emails from a specific user, if the emails are undesired.
| {F28384028} | {F28384027} |
| English Wikipedia | Default MediaWiki |
------
=== Acceptance criteria
* Extend the email footer to include links to configure preferences
** Consider using a new message that is not customizable so local wikis cannot override the links.
* Clicking the links will take the user to a special confirmation page with text to explain what will happen and a button to click to confirm the action:
** Rough design: {F28688373} (note that this task is only about adding the first checkbox. second one in T220163})
** **If Echo is disabled or one of the lists are disabled, only one option is shown (still a checkbox)**
* The link should be:
** //Manage email preferences for $USERNAME//
* The link takes the user to the special page (**Special:Mute**) with the //Mute emails from this user// already checked. The user is added to the mute list once they hit save. **If the user is already muted on that option, the button is checked and the "Submit" button is disabled. It gets re-enabled if the state of the checkbox(es) change.**
* After save, the checkbox and save button go away and a confirmation message displays: //User:ABC has been muted. See all muted users in [Special:Preferences](https://en.wikipedia.org/wiki/Special:Preferences)//. - the link goes to Special:Preferences on the wiki they are on.
* If user is logged-out, the user is taken to the login page before redirecting them to //Special:Mute//.
===== Messages:
>>! In T218265#5218762, @dmaza wrote:
> Her are all the screens for this feature (so far)
>
> 1. Mute User: When a user gets to the page and the "target user" **IS NOT** in their email blacklist already
> {F29268265}
Keep the messaging from mock (F28688373) with only one checkbox if the other option is not enabled.
> 2. Un-Mute: When a user gets to the page and the "target user" **IS **already in their email blacklist.
> {F29268269}
Same as above. Keep the checkbox checked but the "Submit" button disabled to indicate the user is already muted. If the user unchecks the checkbox, the button gets enabled and on click, the user is unmuted.
> 3. Success: After clicking confirm. Either to mute or un-mute a user
> {F29268267}
Replace with: //Your mute preferences have been successfully updated. See all muted users in [Special:Preferences](https://en.wikipedia.org/wiki/Special:Preferences)//. - the link goes to Special:Preferences on the wiki they are on.
> 4. Invalid User: If the username provided on the URL is not valid or if no username is provided
> {F29268271}
Replace with: //The username requested could not be found. Return to Main Page.//
> 5. wgEnableUserEmailBlacklist config set to false: this will only happen if the user tries to access the page directly since the links to it should not be visible.
> {F29268275}
Replace with: //Your mute preferences are disabled. You may enable them in [Special:Preferences](https://en.wikipedia.org/wiki/Special:Preferences). Return to Main Page.//
> Any and all messages are "placeholders". If you wish to change them please let me know which ones and in what screen
>
> We were also discussing the possibility of having a default message if a user tries to access the page directly without providing a username instead of displaying the "invalid user" message (#4)