summaryrefslogtreecommitdiff
path: root/bin/list_members (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move list_lists and list_members over to Mailman.bin package and rewrite tobwarsaw2006-04-291-286/+0
| | | | | | | | | | | | | | | | | use $-strings and optparse. A side effect of the rewrite is that list_members -d and -n now require their argument, whereas before they were optional (but that is counter to command line parsing standards and not supported by optparse). Now, instead of bare -n use '-n any' and instead of bare -d use '-d any'. Fix ReopenableFileHandler.emit() to ensure that all lines end in a newline. In i18n.py, create and use a subclass of string.Template so that dotted attribute paths are legal in $-strings. So for example, if you have an object 'foo' in one of the namespaces and that has an attribute 'bar', you can say "$foo.bar" to print the value of foo.bar. Should reduce the number of extraneous local variables just to do the attribute path traversal.
* FSF office has moved. chdcking in for MAIN branch.tkikuchi2005-08-271-1/+1
|
* Instead of -c / --checkaddrs, add -i / --invalid and -u / --unicode.bwarsaw2003-06-201-24/+34
| | | | | These switches (especially -i) will make it easier to find bogus addresses in the member database.
* Added a --checkaddrs / -c option to do some limited sanity checking onbwarsaw2003-06-171-15/+51
| | | | | | | | the addresses in the member databases. 1) it checks to make sure the address part contains only ascii characters; 2) it checks to make sure the address parts are not unicode objects. Back port candidate.
* safe(): Fix typos.bwarsaw2003-03-131-7/+7
| | | | main(): Fix dumb coding mistakes so name is always a string.
* More fixes for "funny" characters in real names.bwarsaw2003-03-111-7/+15
|
* main(): This should fix problems when printing list members withbwarsaw2002-12-021-5/+10
| | | | | | "funny" characters in their names. We coerce the output to the default encoding, although I'm not 100% sure this is the right thing to do. (Works for me.)
* Jon Parise's patch to improve the usage() output for the command linebwarsaw2002-10-211-2/+6
| | | | | | and cron scripts. When code/status == 0, there's no error (it's likely --help output) so send that to stdout. Otherwise, it's an error and the output goes to stderr.
* Added --fullnames / -f option to print the full names of addresses asbwarsaw2002-08-221-2/+12
| | | | | suggested in patch #598381 by William Ahern. Implemented differently by Barry (to use email.Utils.formataddr()).
* main(): Chuq noticed that error messages were going to stdout, notbwarsaw2002-04-111-2/+2
| | | | stderr.
* whymatches(): Add a comment which explains the intended semantics.bwarsaw2002-03-071-1/+3
|
* Actually, Marc's patch was closer than mine.bwarsaw2002-03-071-37/+40
|
* main(): Catch any IndexError exceptions for the args.pop() calls.bwarsaw2002-03-071-36/+40
| | | | These mean usage errors.
* statusp(): Renamed to whymatches() for clarity.bwarsaw2002-03-061-3/+3
| | | | | main(): Forgot to check the value of the nomail flag when filtering out disableds.
* Someone -- I forgot who :( -- made a suggestion that list_membersbwarsaw2002-02-231-26/+92
| | | | | | | | | | | | | | | | | | | should be able to filter on nomail (i.e. delivery disabled) as well as the kind of digest being received. I liked the idea, but wasn't keen on the new command line switches, so I reimplemented it using optional arguments on the switches. Sadly, this means we can't use getopt, but still, it's not that hard to hand code. getopt-sig to the rescue! Specifically, -d/--digest grow an optional argument, and added the -n/--nomail switch. statusp(): Returns a boolean specifying whether the nomail filter matches the delivery status of the member. main(): New option parsing code, and added the filters described above.
* Ben Gertzfield's patch to hardcode the path to the python executablebwarsaw2001-09-071-2/+2
| | | | | | | | | | | | | into the script's #! line -- based on --with-python settings, without losing CVS revision history. #! /usr/bin/env python becomes #! @PYTHON@ which gets substituted for in configure.
* All membership related attribute access should use the MemberAdaptorbwarsaw2001-07-191-5/+7
| | | | | | | | | API instead, e.g. GetMembers()/GetDigestMembers() -> getMembers() GetUserSubscribedAddress() -> getMemberCPAddress() GetDeliveryMembers() -> getRegularMemberKeys() GetDigestDeliveryMembers() -> getDigestMemberKeys()
* Start of support for i18n; marking of translatable strings.bwarsaw2000-12-071-21/+16
| | | | | Use extended print statement, string methods, and other Python 2.0 features.
* Make sure all scripts lowercase the list names, since they are casebwarsaw2000-09-111-1/+2
| | | | | | | insensitive. list_lists prints them out using their real name -- not their internal name -- and they should differ only by case. Closes SF bug #113742 and patch #101434.
* Some meager consistency in handling errors when trying to open thebwarsaw2000-04-041-2/+3
| | | | | | | | | | | | | | | | | | mailing list. In all cases, catch the base exception class MMListError, and output a semi-standard error message which also contains the str() of the actual exception details (is this too much?). Also: config_list: slightly different usage() printing find_member.scanlists(): print a message if a MMListError occurs when opening the mailing list object remove_members: Wrap actual DeleteMember() calls in a try/finally to be sure the list is saved and unlocked should an exception occur. Hmm, should it be all or nothing?
* Update the copyright lines to include the years 1999 & 2000.bwarsaw2000-03-211-1/+1
|
* Use a more portable way to save/restore sys.stdoutbwarsaw1999-02-241-1/+2
|
* Make sure -o flag actually works by redirecting output to fpbwarsaw1999-02-241-6/+11
|
* list_members - a new script for dumping a list's members to stdout or a filebwarsaw1999-01-021-0/+133
remove_members - admin script for removing members from the command line subscribe_enmasse - obsolete