Xiaoyan Ma wrote: >I need a script that gets all lists' subscribe_policy/unsubscribe_policy and >outputs to a file. > Similar to lists_admins, but instead of getting administrator's email > address, it gets >subscribe_policy. I looked into MailList.py, config_list, list_lists and >withlist ... but have >not figured out how to do it. Can someone point me to the right direction?
Since you want something similar to list_admins, look at that. In particular find owners = COMMASPACE.join(mlist.owner) print _('List: %(listname)s, \tOwners: %(owners)s') You don't need COMMASPACE.join(mlist.owner) because subscribe policy is a number, not a list of e-mail addresses, but if you are going to use the i18n._ method you do have to assign mlist.subscribe_policy to a variable or you can just print 'List: %s, \tPolicy: %d' % (listname, mlist.subscribe_policy) -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users 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-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp