On Wed, 2005-11-16 at 13:12 -0400, Adrian Wells wrote: > Hello. How might one configure Mailman (version 2.1.6) list settings > using PHP scripts?
Wow, this thread opened up a can of worms. :) Since I'm sitting here waiting for some compiles, I'll try to answer them as best I can. First, the technical one brought up here... I don't know anything about PHP, but one question is whether the box running PHP will live on the same system as the Mailman server. If the answer is yes, then your approach might be fairly easy for a Python hacker. Basically, what I'd do is write some custom Python scripts, modeled on the cron, command line, or mail filter scripts, which does the specific tasks you want them to do. Then basically call them from PHP to make things happen. I don't know if you can embed a Python interpreter in PHP (kind of like mod_python w/Apache), but if so, then you don't even have to go through the command line. Write importable modules and make the appropriate calls. If not, write them as command line scripts. Do all your input validation in PHP and your Python scripts can be mostly trustworthy (assuming all your other system security is up to snuff). If PHP is running on a different machine, then, as someone I think suggests in a later message, check out the XMLRPC interface. This seems to me like a very reasonable way to provide external access to Mailman and should seriously be considered for Mailman 2.2 (more on that later). -Barry
signature.asc
Description: This is a digitally signed message part
_______________________________________________ Mailman-Developers mailing list Mailman-Developers@python.org 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-users%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