On Aug 13, 2004, at 9:57 PM, Bruce Bertrand wrote:
On Wednesday 11 August 2004 02:51 pm, Luis Casillas wrote:
Something I've wanted to add to MediaWiki is email notifications of watchlist page changes. The users of the wiki I'm running have asked for this feature. (I do need to learn PHP and get a good look at the code before I try this, though.)
This should be fairly straightforward.
On each commit, search the watchlist table for instances of that page and collect the returned user id's into an array. Step through the array, getting the email address associated with each id. Then send out a mail that's BCC'd to each address.
If the watchlist table gets very big, it could take a long time for the edit to be committed. However, the "namespace_title" field is already a table index, so it shouldn't be too bad unless it's a huge wiki, in which case, a flag in LocalSettings could disable the option.
Yeah, I figured this couldn't be too hard to do, and really the obstacle is to find the time to learn PHP. Thanks for the details!
-- Luis Casillas casillas@mercedsystems.com