For special applications, such as "dumping" backup log or status messages to a
wiki page and to allow users to simply send mail to a wiki page, instead of
editing, we developed a script (bot) editpage.php.
Basically, the idea of mail-to-wiki is not new, see for example [1], [2].
The script can be run from commandline with parameters, can read from a file or
from stdin. The latter allows to commence script execution from a simple call
via POSTIFX -> PROCMAIL -> .procmailrc
Commands are placed into the first lines of the mail; the currently implemented
commands are
- append the mail body to a wiki page (default), append:page
- prepend the mail body to a wiki page prepend:page
- create a new wiki page create:page
A keyword Summary: allows to define an wiki edit summary; if summary is empty,
the mail _Subject_ is copied as edit summary and appears in recent changes (as
usual).
The code is stable, tested for Mediawiki 1.3.7, 1.3.11, CVS HEAD 1.5 and will be
published tomorrow. It works with both the new and old edit collision detection
mechanisms, because it takes care of wpEdittime _and_ wp EditToken and treats
them both for user convenience.
References, which also show mail-to-wiki gateways:
[1] http://collab.blueoxen.net/cgi-bin/wiki.pl?Mail2wiki#nid1GA
[2] http://c2.com/cgi/wiki?CvWiki
Tom and Markus
Version: unspecified
Severity: enhancement
URL: http://meta.wikimedia.org/wiki/Mail-to-wiki_gateway