On Tue, 2012-05-08 at 19:00 -0700, Mark Sapiro wrote: > You probably need to create at least a withlist script, but it's pretty > simple. something like > > > def list_topics(mlist): > if mlist.topics: > print ('List %s has the following topics defined:' % > mlist.real_name) > for name, pattern, desc, emptyflag in mlist.topics: > print ' Topic name: %s; Pattern: %s' % (name, pattern) > print ' Subscribed users:' > for user in mlist.getRegularMemberKeys(): > if name in mlist.getMemberTopics(user): > print ' %s' % user > else: > print 'List %s has no topics defined.' % mlist.real_name > > > This will print a topic followed by the list of users subscribed to it, > followed by the next, etc.
I tried the first one and it worked! I got exactly the info I needed, and I learned about the "withlist" script - thanks! Note: I have not been using mailman for very long, so I'm still learning lots (i.e. massive gaps in knowledge). :P Regards, Ranbir -- Kanwar Ranbir Sandhu Linux 3.3.2-6.fc16.x86_64 x86_64 GNU/Linux 15:20:11 up 20:05, 3 users, load average: 0.05, 0.06, 0.05
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org