Hi,
I have a question on the UserMailer::EmailNotifications class. Would it be possible to move the settings of the protected variables out of the actuallyNotifyOnPageChange() functions and in the initialisation routine (or some other routine)?
If that is not possible, is there another way to compose a notification message without sending it out (and without replicating the whole class).
What I want is to modify the list of watchers. I have a fairly small wiki, where 90% of the edits happen by known editors (who have the 'autopatrol' permission). I'm currently using the $wgUsersNotifiedOnAllChanges to check edits for spam (some more 7%) and legitimate edits from guests (the remaining 3%). However, I would be much happier to get only mails for all Unpatrolled changes (i.e. those not autopatrolled). So I'm writing a small extension which defines $wgUsersNotifiedOnUnpatrolledChanges.
Obviously I like a hook that allows me to modify the list of watchers, but failing that (it's apparently still on the todo list, see r44960) I'm using the RecentChange_save hook.
However, I seem to fail to use the UserMailer::EmailNotifications class. Any suggestions? 1. Is there still a way to use UserMailer::EmailNotifications? 2. Should I rewrite the functionality of UserMailer::EmailNotifications in my extensions? 3. Is it possible to change UserMailer::EmailNotifications? 4. Is there perhaps another way to accomplish what I like to do (I only know about Extension:AutoWatch, but that is not exactly what I want)?
Regards, Freek Dijkstra