Re: [Mailman-Users] Acknowledging sender when moderated message is accepted

2019-08-16 Thread Mark Sapiro
On 8/15/19 10:54 AM, David Pane wrote:
> 
> I administer a mailman (version 2.1.15) server (CentOS 7) which contain
> 40-50 lists (including umbrella lists).  When a sender's email is held
> for moderation, we would like to acknowledge the sender when that post
> is "Accepted" by the moderator in a similar fashion as we do when the
> moderator "Rejects" a message (default message with ability to
> customize).  This will avoid the user wondering if the email was sent
> out to the list.
...
> Any help is greatly appreciated. 


Look at Mailman/ListAdmin.py. This module defines a __handlepost()
method. Within that definition there is a set of alternatives based on
'value'. I.e.

if value == mm_cfg.DEFER:
...
elif value == mm_cfg.APPROVE:
...
elif value == mm_cfg.REJECT:
...
else:
...

Within the 'REJECT' code there is a call to __refuse() to send the
rejection notice to the sender.

You could add a __approve() method similar to __refuse() to send the
approved notice to the user and call it from within the 'APPROVE' code.

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Acknowledging sender when moderated message is accepted

2019-08-16 Thread David Pane


I administer a mailman (version 2.1.15) server (CentOS 7) which contain 
40-50 lists (including umbrella lists).  When a sender's email is held 
for moderation, we would like to acknowledge the sender when that post 
is "Accepted" by the moderator in a similar fashion as we do when the 
moderator "Rejects" a message (default message with ability to 
customize).  This will avoid the user wondering if the email was sent 
out to the list.


The acknowledge option gets us part of the way, but I could not find a 
way to acknowledge non-members who post to a list. It is common for a 
non-member to send legitimate email to our lists (e.g. faculty member 
sending to student lists).  I believe there will also be an issue with 
receiving acknowledgements from one of the individual list member of an 
umbrella list since they are not treated as an ordinary users thus they 
cannot set the acknowledge option flag for that list.


I have tried using the setting "Receive your own posts to the list?" set 
it to "Yes" and the server logs show an email is being sent, the email 
provider's duplicate suppression renders the user not actually seeing 
that email come into their inbox.


Any help is greatly appreciated.

Thank you,
David
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org