| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| |
|
|
|
| |
These switches (especially -i) will make it easier to find bogus
addresses in the member database.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
main(): Fix dumb coding mistakes so name is always a string.
|
| | |
|
| |
|
|
|
|
| |
"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.)
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
| |
suggested in patch #598381 by William Ahern. Implemented differently
by Barry (to use email.Utils.formataddr()).
|
| |
|
|
| |
stderr.
|
| | |
|
| | |
|
| |
|
|
| |
These mean usage errors.
|
| |
|
|
|
| |
main(): Forgot to check the value of the nomail flag when filtering
out disableds.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
API instead, e.g.
GetMembers()/GetDigestMembers() -> getMembers()
GetUserSubscribedAddress() -> getMemberCPAddress()
GetDeliveryMembers() -> getRegularMemberKeys()
GetDigestDeliveryMembers() -> getDigestMemberKeys()
|
| |
|
|
|
| |
Use extended print statement, string methods, and other Python 2.0
features.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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?
|
| | |
|
| | |
|
| | |
|
|
|
remove_members - admin script for removing members from the command line
subscribe_enmasse - obsolete
|