| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
add_members is just like convert_list was, except that
1) the "Send big changes" option defaults to no.
2) the -c and -w options are specified in the short version of the
usage.
scott
|
| |
|
|
|
|
|
| |
out a warning if the test fails.
this way comments and most accidental stuff that gets into a file to
import should not be added.
scott
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
fix and one addition. Sorry, i realized that too late.
This change adds another list conifg variable "admin_notify_mchanges",
which is a boolean 0 or 1 and specifies whether or not the list admin
gets notifications of subscriptions and unsubscriptions.
The functions MailList.DeleteMember and MailList.ApprovedAddMember
trigger the delivery if it is turned on for the list or passed in as
an optional argument. This way, it is the duty of programs/code that
do mass subscriptions/unsubscriptions where this notification may not
be appropriate to specify that in the call to .DeleteMember or
.ApprovedAddMember.
There are 2 new templates, adminsubscribeack.txt and
adminunsubscribeack.txt which are used in sending these
notifications.
Defaults.py.in has a variable "DEFAULT_ADMIN_NOTIFY_MCHANGES" which is
set to 0 so that old lists will act the same by default, and the data
version is up'ed to 12. versions.py sets the variable if it's not
already there for a list. The config info for the admin cgi program
for this new variable is set right after the variable for immediate
notifications.
The second change is a fix where ApprovedAddMember was calling a
"self.Save()", which made mass subscribe situiations really far too
slow. I removed the .Save() from there and added it to the more outer
level code in the following places:
bin/convert_list
Mailman/ListAdmin.py
Mailman/MailCommandHandler.py
Mailman/Cgi/admin.py
Note that since AddMember can trigger a call to ApprovedAddMember, all
the places where AddMember is called needed a .Save() added as well.
I need to add a call to .Save() for Mailman/Cgi/subscribe.py as well
and will do that in a moment.
scott
|
| | |
|
| |
|
|
|
|
| |
list members (-c and --changes-msg), and to override the list setting
for send_welcome_msg (-w and --welcome-msg).
scott
|
| |
|
|
| |
send_welcome_msg setting.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
standard, e.g. requiring options and long options instead of
positional arguments (only required args are positional). Added a
--help option too.
GetRandomPassword(): Fixed typo: it's Mailman.Utils.GetRandomSeed()
SendExplanation(): pass mailing list in as an argument
AddMember(): New function.
main(): Use getopt module to scan options. Exchange bare excepts for
more qualified excepts. Change the way addresses are sucked in from
the files. Once the mailing list is instantiated, wrap an unlock in a
try/finally so that any uncaught exceptions don't leave the list
locked.
|
| | |
|
| |
|
|
| |
constructor actuals when the list doesn't need to be locked.
|
| |
|
|
|
| |
minor changes here and there to support relative paths (changing
absolute paths that didn't use GetScriptURL to begin with).
|
| |
|
|
|
|
|
|
|
|
| |
1. Use the standard Python invocation #! line to get the interpreter
from $PATH
2. Do no direct sys.path munging in this file. Import the `paths'
module, which is created during the configure process, and which
performs all necessary path munging (and exports some useful
variables too).
|
| | |
|
| | |
|
| |
|