[Mailman-Users] add_members
Allan Hansen
hansen at rc.org
Mon Feb 27 06:31:11 CET 2006
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 <hansen at rc.org> 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: allan.hansen at ugs.com hansen at rc.org |
>> | 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 at 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: allan.hansen at ugs.com hansen at rc.org |
| WWW: http://www.ugs.com http://www.rc.org/ |
| |
|_Anything is possible with the right tools and right information_|
More information about the Mailman-Users
mailing list