[Mediawiki-l] Turning off email notifications for a large number of users

Dan Nessett dnessett at yahoo.com
Mon Apr 4 23:08:30 UTC 2011

On Tue, 05 Apr 2011 00:44:56 +0200, Platonides wrote:

> Brion Vibber wrote:
>> On Mon, Apr 4, 2011 at 2:11 PM, Dan Nessett <dnessett at yahoo.com> wrote:
>>> Right now the way we handle this problem is to reset the password for
>>> the user causing the bounces, login to the account and deselect all
>>> email notification options in preferences. However, it would be better
>>> if we could just reset the email preferences on all inactive accounts.
>>> Is there anyway of doing this other than resetting the password on
>>> each account (of which there are many)? We run 1.16.2 on this small
>>> wiki.
>> You should be able to do this with maintenance/userOptions.php on the
>> command line:
>> http://www.mediawiki.org/wiki/Manual:UserOptions.php
>> something like this to see who's got things enabled:
>>     php userOptions.php enotifwatchlistpages --usage
>> and to disable active ones:
>>     php userOptions.php enotifwatchlistpages --old 1 --new 0
>> -- brion
> Note that this will disable email notification *for everybody*.
> userOptions.php should atleast contain a --user switch :s

Thanks. I didn't know about userOptions.php. Since the number of admins 
at any one time is small, I can turn off email notifications for everyone 
and then tell all of the current admins to turn it back on again. This 
gets around the problem of no --user switch.

-- Dan Nessett

More information about the MediaWiki-l mailing list