[Mailman-Users] Re: Held message notifications are not being sent to moderators

2022-06-22 Thread Mark Sapiro

On 6/22/22 14:36, Bruce Johnson via Mailman-Users wrote:
 > So I should see a smtp log entry message for one recipient, then a 

second for 4, the list owner and three moderators.

Yes.

--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Held message notifications are not being sent to moderators

2022-06-22 Thread Mark Sapiro

On 6/22/22 14:29, Bruce Johnson via Mailman-Users wrote:


^L
def process(mlist, msg, msgdata):
 # The recipients are the owner and the moderator
 msgdata['recips'] = mlist.owner + mlist.moderator
 # Don't decorate these messages with the header/footers
 msgdata['nodecorate'] = 1
 msgdata['personalize'] = 0

I know that getting mlist.moderator works because one of my other scripts uses 
a withlist command that gets the owners and moderators.

Not sure what the ^L is in there, though….


The ^L is just for formatting. It is just whitespace as far as python is 
concerned.


Is there anything in Mailman's error log?

What's in the MTA logs?

--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Held message notifications are not being sent to moderators

2022-06-22 Thread Bruce Johnson via Mailman-Users
Well THAT did not go through as I expected it to


The list owner has one address, the list moderator has three addresses. All are 
valid, and I've cleared and re-entered the addresses just in case a hidden 
control character got stuck in there.

The only recent change in the server was setting up https:// to work properly, 
but that should have nothing to do with this.


On Jun 22, 2022, at 2:29 PM, Bruce Johnson via Mailman-Users 
mailto:mailman-users@python.org>> wrote:



On Jun 22, 2022, at 2:14 PM, Mark Sapiro 
mailto:m...@msapiro.net>> wrote:

On 6/22/22 11:16, Bruce Johnson via Mailman-Users wrote:
We have numerous lists set as announcement lists by setting all members as 
moderated. However the moderators are not getting notifications for held 
messages; only the list owner is getting the notifications.
This is a new-ish phenomenon, since I know they used to be sent to all the 
moderators, too.
I can see the held messages in the vette logfile, and the smtp logfile shows 
the message to the list owner being sent, twice, but that’s it.


This is very strange. You see two entries in the smtp log because the notice is 
first sent to 
listname-ow...@example.com
 and then Mailman receives that message and resends it to the list's owners and 
moderators. Unless you have some change in Mailman/Handlers/OwnerRecips.py, I 
don't see how this can not include the moderators.


So I should see a smtp log entry message for one recipient, then a second for 
4, the list owner and three moderators.



What is the content of the list's moderator setting?

The list administrator email addresses. Multiple administrator addresses, each 
on separate line is okay.
(Details for 
owner)
The list moderator email addresses. Multiple moderator addresses, each on 
separate line is okay.
(Details for 
moderator)





--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Held message notifications are not being sent to moderators

2022-06-22 Thread Bruce Johnson via Mailman-Users


On Jun 22, 2022, at 2:14 PM, Mark Sapiro 
mailto:m...@msapiro.net>> wrote:

On 6/22/22 11:16, Bruce Johnson via Mailman-Users wrote:
We have numerous lists set as announcement lists by setting all members as 
moderated. However the moderators are not getting notifications for held 
messages; only the list owner is getting the notifications.
This is a new-ish phenomenon, since I know they used to be sent to all the 
moderators, too.
I can see the held messages in the vette logfile, and the smtp logfile shows 
the message to the list owner being sent, twice, but that’s it.


This is very strange. You see two entries in the smtp log because the notice is 
first sent to listname-ow...@example.com and 
then Mailman receives that message and resends it to the list's owners and 
moderators. Unless you have some change in Mailman/Handlers/OwnerRecips.py, I 
don't see how this can not include the moderators.

What is the content of the list's moderator setting?

The list administrator email addresses. Multiple administrator addresses, each 
on separate line is okay.
(Details for 
owner)
The list moderator email addresses. Multiple moderator addresses, each on 
separate line is okay.
(Details for 
moderator)


Anonymized but they are all valid addresses.

We have a service account created for all list ownership that goes to our it 
ticketing system.

I have never messed with that afaik:

more /usr/lib/mailman/Mailman/Handlers/OwnerRecips.py
# Copyright (C) 2001-2018 by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

"""Calculate the list owner recipients (includes moderators).
"""


^L
def process(mlist, msg, msgdata):
# The recipients are the owner and the moderator
msgdata['recips'] = mlist.owner + mlist.moderator
# Don't decorate these messages with the header/footers
msgdata['nodecorate'] = 1
msgdata['personalize'] = 0

I know that getting mlist.moderator works because one of my other scripts uses 
a withlist command that gets the owners and moderators.

Not sure what the ^L is in there, though….

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: Held message notifications are not being sent to moderators

2022-06-22 Thread Mark Sapiro

On 6/22/22 11:16, Bruce Johnson via Mailman-Users wrote:

We have numerous lists set as announcement lists by setting all members as 
moderated. However the moderators are not getting notifications for held 
messages; only the list owner is getting the notifications.

This is a new-ish phenomenon, since I know they used to be sent to all the 
moderators, too.

I can see the held messages in the vette logfile, and the smtp logfile shows 
the message to the list owner being sent, twice, but that’s it.



This is very strange. You see two entries in the smtp log because the 
notice is first sent to listname-ow...@example.com and then Mailman 
receives that message and resends it to the list's owners and 
moderators. Unless you have some change in 
Mailman/Handlers/OwnerRecips.py, I don't see how this can not include 
the moderators.


What is the content of the list's moderator setting?

--
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/