Last modified: 2005-06-01 21:14:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T3675, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 1675 - mail-to-wiki gateway: add and create wiki pages from e-mail
mail-to-wiki gateway: add and create wiki pages from e-mail
Status: RESOLVED DUPLICATE of bug 831
Product: MediaWiki
Classification: Unclassified
Page editing (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: T. Gries
http://meta.wikimedia.org/wiki/Mail-t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-10 07:58 UTC by T. Gries
Modified: 2005-06-01 21:14 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description T. Gries 2005-03-10 07:58:27 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 [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
Comment 1 T. Gries 2005-03-21 20:39:53 UTC
My first version is ready for download, it works with 1.3.7, 1.3.10, 1.5 (1.4
currently untested).

Download from http://www.tgries.de/mw/editpage.php (current version 1.14)

You can

* 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)

Description: http://meta.wikimedia.org/wiki/Mail-to-wiki_gateway

Tom



Comment 2 JeLuF 2005-03-21 20:43:48 UTC

*** This bug has been marked as a duplicate of 831 ***
Comment 3 T. Gries 2005-03-21 21:26:26 UTC
This bugzilla ... to be deleted now, please.
Tom
Comment 4 T. Gries 2005-06-01 21:14:25 UTC
(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

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links