Last modified: 2005-06-01 21:14:25 UTC
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 , .
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
* 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
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:
Tom and Markus
My first version is ready for download, it works with 1.3.7, 1.3.10, 1.5 (1.4
Download from http://www.tgries.de/mw/editpage.php (current version 1.14)
* submit to the script pagename, text and optional summary as commandline parameters
* or from a file
* or, most important, from stdin (basically, this is used when PROCMAIL
transfers a mail file to the script)
*** This bug has been marked as a duplicate of 831 ***
This bugzilla ... to be deleted now, please.
(In reply to comment #1)
> Download from http://www.tgries.de/mw/editpage.php (current version 1.14)
typo correction, URL must be http://www.wikinaut.de/mw/editpage.tgz
> You can ...
>* 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