Extension:WatchEmailOptional

WatchEmailOptional enables users to set email notifications on watched articles on a per-article basis.

Questions welcome, but please be careful hacking up your local copy of MediaWiki and altering your database. Always make backups first before attempting such changes. You have been warned.

The extension is geared to give a solution for Bugzilla 2555 Secondary watchlist adds checkboxes for watched pages: watching with or without E-mail notification (enotif). If there is sufficient interest, I'll add features to this extension and/or try to get it added to MediaWiki itself.

Usage
Watch some articles, then visit your Special:Watchlist/edit page.

Download instructions
Please cut and paste the code found below and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

Installation
'''Be careful hacking up your local copy of MediaWiki and altering your database. Always make backups first before attempting such changes.'''

To install this extension:


 * Patch the files listed below (UserMailer.php and WatchlistEditor):


 * Add the following to LocalSettings.php:

Change to UserMailer.php
Add after line 376: 'wl_enotif' => 1,

Change to WatchlistEditor.php
Add after line 69: setEnotif( $request->getValues );

Add after line 394 :. wfRadio( $title, getEnotif( $title ) ? '' : 'enotif', getEnotif( $title ) ) .' (email) ' . wfRadio( $title, getEnotif( $title ) ? 'noenotif' : '', !getEnotif( $title ) ) .' (no email) '