Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits:
30b4a04c by Mark Sapiro at 2019-06-07T21:56:53Z
Don't notify existing admins of each imported member.
- - - - -
58c36bda by Mark Sapiro at 2019-06-07T21:56:53Z
Merge branch 'fix_605' into 'master'
Don't notify existing admins of each imported member.
Closes #605
See merge request mailman/mailman!523
- - - - -
2 changed files:
- src/mailman/docs/NEWS.rst
- src/mailman/utilities/importer.py
Changes:
=====================================
src/mailman/docs/NEWS.rst
=====================================
@@ -42,6 +42,8 @@ Command line
actions for nonmembers following a member in the list. (closes #580)
* The progress meter while ``mailman import21`` is importing rosters has been
shortened so it no longer wraps and scrolls. (Closes #589)
+* The ``mailman import21`` command no longer sends an email to existing owners
+ for each imported member. (Closes #605)
REST
----
=====================================
src/mailman/utilities/importer.py
=====================================
@@ -506,9 +506,11 @@ def import_config_pck(mlist, config_dict):
regulars_set = set(config_dict.get('members', {}))
digesters_set = set(config_dict.get('digest_members', {}))
members = regulars_set.union(digesters_set)
- # Don't send welcome messages when we import the rosters.
+ # Don't send welcome messages or notify admins when we import the rosters.
send_welcome_message = mlist.send_welcome_message
mlist.send_welcome_message = False
+ admin_notify_mchanges = mlist.admin_notify_mchanges
+ mlist.admin_notify_mchanges = False
try:
import_roster(mlist, config_dict, members, MemberRole.member)
import_roster(mlist, config_dict, config_dict.get('owner', []),
@@ -533,6 +535,7 @@ def import_config_pck(mlist, config_dict):
list_prop.remove(email)
finally:
mlist.send_welcome_message = send_welcome_message
+ mlist.admin_notify_mchanges = admin_notify_mchanges
def import_roster(mlist, config_dict, members, role, action=None):
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/b565568ed67b651e0b9a8bd5fe3bae613ae23e64...58c36bda01bcd0aa2720877e94cf513dae31a0d3
--
View it on GitLab:
https://gitlab.com/mailman/mailman/compare/b565568ed67b651e0b9a8bd5fe3bae613ae23e64...58c36bda01bcd0aa2720877e94cf513dae31a0d3
You're receiving this email because of your account on gitlab.com.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
https://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org