Don't panic! :)

> ------ pipe to |/usr/local/bin/moin -q --config
> /usr/local/share/moin/moin-dir/ xmlrpc mailimport
>        generated by imp...@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. :)



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to