Many thanks for your speedy response,

Apologies for any ignorance displayed regarding Mailman - I have begun 
experimenting with it only recently as a way to add mailing list functionality 
to the existing PHP application I mentioned. (As a side note, a big thank you 
to whoever builds the Debian package - completely painless, especially compared 
with Sympa...)

With regards to Mailman 3, from my reading I understand that this will 
implement SQL-type storage for all configuration and list data. This would 
completely take care of my needs in this case I think; would you perhaps be 
able to give us a rough idea of progress?

As a garden-variety PHP developer and Mailman rookie, I doubt how far I am 
capable of going deep into Mailman itself to implement a solution for this. I 
would be happy to do the research before dismissing the idea though, if you 
could point me in the direction of some bedtime reading on the subject. Given 
the time I have available and the limited functionality required, I'm very much 
leaning towards the cheapest hack option - which seems likely to be simply 
executing command line commands.

Regarding your questions:

-- What functionality do you want to expose?

Not much. To start with, creating and removing lists and adding and deleting 
subscribers would probably be enough.

-- How would you handle security?

To be honest, I hadn't even got as far as thinking about that, since I'm not 
really clear on the mechanisms involved.

- - Will you have to re-implement much of the CGI logic?

Again, I haven't gone through closely enough to give a decent answer. If I was 
hacking something up which did use the Web Interface as a gateway, I would be 
more likely to use Mechanize to fake a browser and do the intereacting. Ugly I 
know, but I'm familiar with that so I could get it to work.

Sorry that I don't have the experience to come up with better ideas on this; as 
I said, I welcome input from anybody that has already attempted this kind of 
work.

Regards,
Benjamin



----- Original Message ----
From: Barry Warsaw <[EMAIL PROTECTED]>
To: Ben Sims <[EMAIL PROTECTED]>
Cc: [email protected]
Sent: Wednesday, 16 May, 2007 4:05:53 PM
Subject: Re: [Mailman-Developers] Interacting with mailman remotely through 
APIs / wrappers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On May 16, 2007, at 5:00 AM, Ben Sims wrote:

> All
> of these are rather clunky. My dream response would be some sort of  
> Web
> service / API interface with a corresponding PHP client object, but I
> haven't been able to find any evidence of this existing.

I think this could be handled fairly easily, and it would make an  
excellent project for Mailman 3.  You could prototype the work for  
Mailman 2.1 fairly easily too.

The way I'd go about thinking about this would be to implement a  
qrunner based on Python's standard SimpleXMLRPCServer module.  While  
not technically a 'queue runner', we already have some precedence in  
the trunk for running other types of long-running processes from the  
qrunner architecture, so while a slight misnomer, it's quite workable.

The questions of course are

- - What functionality do you want to expose?
- - How will you handle security?
- - Will you have to re-implement much of the CGI logic?

I think you could pretty easily throw together the architecture for  
this and then start to answer the other questions.  In Mailman 3 I'm  
trying hard to get functionality that lives only in the CGI or  
command line scripts accessible through the standard Mailman package.

One other thing to think about: In the trunk, we already have a wsgi- 
based web server which should allow sites to swap in their own HTTP- 
based access to Mailman if they wanted (e.g. via Zope, Django,  
TurboGears, etc.).  Many of these web publishing frameworks also have  
XMLRPC publishing.  I don't know what the standards there are, but  
IWBNI we could swap those publishing mechanisms as well.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRksBsnEjvBPtnXfVAQKOqgP9HzgbldPeM8QNEsbN98PbksHVzP/qBOEN
isXu3dDHGvtTx8DxJbgtQ2R0qSPJU7nsKvIC8O1Iqw01t+89MZLVEbCAx+uiPj1K
wPXsYoitDW4XeN7CCfBE+xoEFL++mRqH6K3MC3zOavqt6HZ07hbQBKLE/XmMEepR
BAcTbwnUEjI=
=nwzh
-----END PGP SIGNATURE-----





      ___________________________________________________________ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 
_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Reply via email to