Extension:SemanticMailMerge

SemanticMailMerge is a Semantic MediaWiki result-format extension that merges each result of a semantic search into a template, and sends the resultant as an email.

Usage
Akin to the standard 'template' result format, this extension requires two pages: one with the  query, and one template (specified in the query). The output of the query is the same as the 'table' result format, and the data from each row is put into the template and emailed to all email addresses specified in the 'To' column.

The actual email-sending is done separately, so that it can be scheduled (by an external task system such as crontab or Scheduled Tasks). On the required schedule, the  file should be called:

php SemanticMailMerge/maintenance/send.php --title=Title_of_page_with_query

Outstanding problems

 * Page moves. If a query page is moved, the data referring to its old location is not purged.
 * Custom recipients' column. Currently hard-coded as 'To'. Perhaps not customizable, but should at least be localized.
 * Links in the HTML for the email need to be expanded to be canonical URLs.
 * Permit more than one query on a page (does an query have an identifier?). Currently uses the page title to identify it.