Julien Phalip wrote: > Hi, > > On one site I'm considering the possibility of replicating the (basic) > functionality of Google Groups in Django. The idea is: > > - There would be 5 different mailing lists. Users can subscribe to one > or more lists. > - People can purely use emails to access the lists. > - All the emails can then also be seen via a web interface. > > I've been thinking of using Mailman to leverage all the email > management part. But now I'm not sure how to reliably sync the Mailman > subscription system with django.contrib.auth. > > I don't think there's any straight forward to do this. Would you have > any advice to get me started?
Hello Julien, Mailman stores its membership "database" in Python pickles. You have a few options for integrating with it. First, you can use an adaptor for MM that will enable you to store the membership db in MySQL. It has been a while since I looked at it so I don't know if there is one for PostgreSQL. I doubt it would be difficult to modify, if there isn't. Once it's in a database, you can do whatever you want from Django. Second, you can do what "foreign" technologies, like Drupal, which is written in PHP, do and "automate" MM by treating MM as a black box and just invoking its web front end. There is a Drupal module for MM that makes the process seamless for Drupal site members so if it's feasible for a PHP-based application, it's certainly feasible for you to do it in Django. As for how all emails can be seen via a web interface, one option is to have Django subscribe to the lists in question and use an IMAP client library to access the mailbox for that subscriber. -- Regards, Clifford Ilkay Dinamis 1419-3266 Yonge St. Toronto, ON Canada M4N 3P6 <http://dinamis.com> +1 416-410-3326 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---