Notifying owners of membership changes but not moderators
Hi,
It looks like this list setting under Automatic Responses is the primary control for if email notifications regarding membership changes are sent or not:
Notify admin of membership changes: Yes/No Should administrator get notices of subscribes and unsubscribes?
Which is this setting name: "admin_notify_mchanges"
I have a fair number of moderators however who don't want these notifications and only a single owner who appreciates the notifications on membership changes.
Is there any way to have these only for Owners ?
Cheers, Perry
On 11/26/24 4:54 PM, Perry Kollmorgen wrote:
Is there any way to have these only for Owners ?
No. Essentially all admin notices are sent to LISTNAME-owner@DOMAIN and
that in turn resends to owners and moderators. There are no controls to
restrict this to only owners and not moderators, however it doesn't send
to those with delivery disabled, so you could do something like this in
mailman shell
$ mailman shell -l LIST_ID
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
The variable 'm' is the LIST_ID mailing list
>>> for moderator in m.moderators.members:
... moderator.preferences.delivery_status = DeliveryStatus.by_moderator
...
>>> commit()
This will not affect the delivery status of the user's role as list member.
This is not available in Postorius and also, the moderator can't set the delivery_status for their moderator role either, only for their member role.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks Mark.
So, I have python scripts which do the adding of nonmembers and moderators.
For the nonmember script I needed to add something so that the nonmembers can send, i.e the moderaction_action = 'defer'
This is my code for nonmembers:
mailing_list.add_role('nonmember', nonmember.email, display_name=nonmember.display_name)
list_member = mailing_list.get_nonmember(nonmember.email)
list_member.moderation_action = 'defer'
list_member.save()
For the code for moderators it currently only adds them:
mailing_list.add_moderator(moderator.email, display_name=moderator.display_name)
Would I need to add something similar which sets a delivery_status for the moderator added ?
Cheers, Perry
From: Mark Sapiro <mark@msapiro.net> Sent: Wednesday, 27 November 2024 2:16 PM To: mailman-users@mailman3.org <mailman-users@mailman3.org> Subject: [MM3-users] Re: Notifying owners of membership changes but not moderators
On 11/26/24 4:54 PM, Perry Kollmorgen wrote:
Is there any way to have these only for Owners ?
No. Essentially all admin notices are sent to LISTNAME-owner@DOMAIN and
that in turn resends to owners and moderators. There are no controls to
restrict this to only owners and not moderators, however it doesn't send
to those with delivery disabled, so you could do something like this in
mailman shell
$ mailman shell -l LIST_ID
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
The variable 'm' is the LIST_ID mailing list
>>> for moderator in m.moderators.members:
... moderator.preferences.delivery_status = DeliveryStatus.by_moderator
...
>>> commit()
This will not affect the delivery status of the user's role as list member.
This is not available in Postorius and also, the moderator can't set the delivery_status for their moderator role either, only for their member role.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to pcjkollmorgen@hotmail.com
On 11/26/24 9:30 PM, Perry Kollmorgen wrote:
For the code for moderators it currently only adds them:
mailing_list.add_moderator(moderator.email, display_name=moderator.display_name)
Would I need to add something similar which sets a delivery_status for the moderator added ?
I think something like this
mailing_list.add_moderator(moderator.email,
display_name=moderator.display_name)
moderator = mailing_list._get_membership(moderator.email, 'moderator')
prefs = moderator.preferences
prefs['delivery_status'] = 'by_moderator'
prefs.save()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks Mark, I will give it a shot.
—
Perry
On Nov 28, 2024 at 9:12 AM, <Mark Sapiro (mailto:mark@msapiro.net)> wrote:
On 11/26/24 9:30 PM, Perry Kollmorgen wrote: > > For the code for moderators it currently only adds them: > > mailing_list.add_moderator(moderator.email, display_name=moderator.display_name) > > Would I need to add something similar which sets a delivery_status for the moderator added ? I think something like this
mailing_list.add_moderator(moderator.email, display_name=moderator.display_name) moderator = mailing_list._get_membership(moderator.email, 'moderator') prefs = moderator.preferences prefs['delivery_status'] = 'by_moderator' prefs.save()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan _______________________________________________ Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/... This message sent to pcjkollmorgen@hotmail.com
participants (2)
-
Mark Sapiro
-
Perry Kollmorgen