[Moin-user] Mail-Import. Again.

Thomas Waldmann tw-public at gmx.de
Mon Feb 2 16:20:32 EST 2009


Don't panic! :)

> ------ pipe to |/usr/local/bin/moin -q --config
> /usr/local/share/moin/moin-dir/ xmlrpc mailimport
>        generated by import at mail.address ------
> 
> Invalid password
> 
> ------
> What *§$%&@^+ password is the mail-import asking for? I can't find anything
> about it in the docs and the code. *sigh*

The xmlrpc client needs to authenticate with the moin server (otherwise
anybody could import mail into your wiki by xmlrpc call).

It does so by a shared secret and the code checking it at the wiki
server side is this:

    if request.cfg.secrets['xmlrpc/ProcessMail'] != secret:
        return u"Invalid password"

Thus, in your wikiconfig.py you need:

    secrets = {
        'xmlrpc/ProcessMail': 'foobar',
        # ... other secrets ...
    }

On the client side (the mailimport script), you need a mailimportconf.py
with:

    mail_import_secret = 'foobar'
    mail_import_url = 'http://server/?action=xmlrpc2'

Hope that helps. :)






More information about the Moin-user mailing list