The site I work on has a small wiki used by administrators for internal discussions. Over the years people have joined the group and then left. When they left, their accounts were blocked, but many have left the email notifications set in preferences. As these accounts age, the email addresses associated with them sometimes become invalid. This means emails sent to those addresses because of changes on watchlists bounce.
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.
On Mon, Apr 4, 2011 at 2:11 PM, Dan Nessett dnessett@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
Brion Vibber wrote:
On Mon, Apr 4, 2011 at 2:11 PM, Dan Nessett dnessett@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
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@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.
On Mon, 04 Apr 2011 15:16:21 -0700, Brion Vibber wrote:
On Mon, Apr 4, 2011 at 2:11 PM, Dan Nessett dnessett@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
According to the documentation in User.php, the array mToggles contains the names of all the toggles in user preferences. I could find all related to user email except "Enable email from other users." Does it have a non-obvious name or does it exist in some other array?
On Tue, Apr 5, 2011 at 1:03 PM, Dan Nessett dnessett@yahoo.com wrote:
According to the documentation in User.php, the array mToggles contains the names of all the toggles in user preferences. I could find all related to user email except "Enable email from other users." Does it have a non-obvious name or does it exist in some other array?
You likely want disablemail
mediawiki-l@lists.wikimedia.org