summaryrefslogtreecommitdiff
path: root/Mailman/Digester.py
diff options
context:
space:
mode:
authorcotton1998-11-21 17:40:11 +0000
committercotton1998-11-21 17:40:11 +0000
commitb3b9d11a05c6b69d8786db177d058fe7115bd6ed (patch)
tree62a8fdf5e2d9b3748a68aa06120f2f8f23d99089 /Mailman/Digester.py
parentc4673a9a249262077384c71e146a8443d5bb1a2b (diff)
downloadmailman-b3b9d11a05c6b69d8786db177d058fe7115bd6ed.tar.gz
mailman-b3b9d11a05c6b69d8786db177d058fe7115bd6ed.tar.zst
mailman-b3b9d11a05c6b69d8786db177d058fe7115bd6ed.zip
I should have broken this up into 2 checkins because it implements one
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
Diffstat (limited to 'Mailman/Digester.py')
0 files changed, 0 insertions, 0 deletions