Thank you, Patrick, but I do need the subscriber names in the lists. Cutting them out would not work. Using bin/list_members, Perl and bin/sync_members lets me do what I need to do. I was just wondering about the apparent inability of add_members to accept names. The help for the command does not indicate a way to input names, and the Python code itself appears to actively reject the notion.
Allan At 23:18 -0600 2/26/06, Patrick Bogen wrote: >I don't know the answer, but you could always use a bit of perl glue >to convert the first format to something add_members will understand >more readily... > >If I knew what the second part was, I'd offer a script to do so. As a >stopgap, you can get just a list of addresses by: > >cat <file> | cut -d'<' -f 2 | cut -d'>' -f 1 >(Append this with '> <file>' without quotes if you want to save it >back to some file) > >- Patrick Bogen > >On 2/26/06, Allan Hansen <[EMAIL PROTECTED]> wrote: >> Problem: >> >> list_members -f -o <file> <list> >> generates a file of members in the following format: >> name_of_subscriber <email_of_subscriber> >> >> sync_members -f <file> <list> >> takes a file of members in the above format. >> >> add_members -r <file> <list> >> crashes with a traceback when given a file in the above format. >> >> The crash appears to happen in OldStyleMemberships.py >> add_members appears to strip all whitespace from the file. >> >> Do I have a mixed bag of incompatible scripts or is this the expected >> behavior at this time. I'm running Mac OS X 10.4.5 >> >> The above is not terribly critical, as I can combine >> list_members and sync_members to do what I otherwise would do with >> just add_members. >> >> Thanks, >> >> Allan >> -- >> _________________________________________________________________ >> | Allan Hansen, Ph.D. | >> | P.O. Box 2423, Cypress, CA 90630, U.S.A. | >> | | >> | Work: Home: | >> | Phone: +1-714/952-6015 +1-714/875-8870 | >> | Fax: +1-714/952-6746 | >> | Email: [EMAIL PROTECTED] [EMAIL PROTECTED] | >> | WWW: http://www.ugs.com http://www.rc.org/ | >> | | >> |_Anything is possible with the right tools and right information_| >> ------------------------------------------------------ >> 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/pdbogen%40gmail.com >> >> Security Policy: >> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp >> > > >-- >- Patrick Bogen -- _________________________________________________________________ | Allan Hansen, Ph.D. | | P.O. Box 2423, Cypress, CA 90630, U.S.A. | | | | Work: Home: | | Phone: +1-714/952-6015 +1-714/875-8870 | | Fax: +1-714/952-6746 | | Email: [EMAIL PROTECTED] [EMAIL PROTECTED] | | WWW: http://www.ugs.com http://www.rc.org/ | | | |_Anything is possible with the right tools and right information_| ------------------------------------------------------ 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