Fabiano Caixeta Duarte wrote: > >I realized that there are scripts for automating creation, deletion end >listing of list's members. > >How can I update (actually insert) member's fullname in batch mode? > >I have a file which contains member's fullname and e-mail address. >Members were added to mailman with any names associated.
As far as I know, there is no generally available script to do this. You could create a withlist script (see 'bin/withlist --help') something along the lines of the following which assumes the your file contains lines like Real Name <[EMAIL PROTECTED]> ------------------------------------------------------------- from email.Utils import parseaddr from Mailman.Errors import NotAMemberError def real_name_from_file(mlist): if not mlist.Locked(): mlist.Lock() fp = open('/path/to/name_address/file') line = fp.readline() while line: real_name, address = parseaddr(line) if real_name and address: try: mlist.setMemberName(address.lower(), real_name) except NotAMemberError: print 'Not a list member: %s' % address.lower() line = fp.readline() mlist.Save() mlist.Unlock() ------------------------------------------------------------- -- 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