changeset 1153:ad1080735ef8

mailimport: add .procmailrc and wrapper script to contrib/
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 10 Aug 2006 14:13:14 +0200
parents acf14d68b7c8
children 44632345fbfb
files contrib/mailimport/.procmailrc contrib/mailimport/wikimailimport
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/mailimport/.procmailrc	Thu Aug 10 14:13:14 2006 +0200
@@ -0,0 +1,8 @@
+# Add this to your .procmailrc rules:
+
+# Pipe all mails directed to the wiki mail address to the wikimailimport script.
+# Make sure wikimailimport script is in your PATH.
+:0 w:
+* ^(To|Cc):.*wiki@example.org
+| wikimailimport
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/contrib/mailimport/wikimailimport	Thu Aug 10 14:13:14 2006 +0200
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# add the directories were your mailimport configuration and your MoinMoin code is located to the python path:
+export PYTHONPATH='/path_to_MoinMoin:/path_to_mailimportconfig'
+
+# call the xmlrpc client code
+/path_to_MoinMoin/MoinMoin/script/moin.py xmlrpc mailimport
+