Last modified: 2014-02-03 05:10:21 UTC
In order to support bots such as the English Wikipedia's [[User:LivingBot]], MassMessage should have an API module to submit deliveries. One question off the top of my head is how to handle validation checks. That is, whether to trust the sender to write sane HTML or to throw a warning or an error (e.g., with invalid HTML input). Same with an invalid input list or... however else someone can fuck up a delivery. ;-) This'll need some thought. Let's keep this bug contained to the delivery module. I'll file (and cross-reference) a separate bug for a job status module. Neither of these bugs should be considered blockers to deployment, as far as I'm concerned.
Change 87311 had a related patch set uploaded by Legoktm: Add API module to send MassMessages https://gerrit.wikimedia.org/r/87311
The current patch only throws errors on actual errors (non-existing spamlist, missing parameter). I'm thinking we could do this like how action=upload works (https://www.mediawiki.org/wiki/API:Upload), where by default you return warnings and don't do the action, but the user can supply an &ignorewarnings=1 which just suppresses them.
Change 87311 merged by jenkins-bot: Add API module to send MassMessages https://gerrit.wikimedia.org/r/87311
Documentation at https://www.mediawiki.org/wiki/Extension:MassMessage/API