Hi,
No matter what action I set for member posts (Hold for moderator, Reject) they are always delivered.
When I tried from a non-member email address, the message got held but when I try to see it I get a Server Error (500) page. The log files shows:
ERROR 2016-08-18 01:04:30,231 base 21026 34722993152 Internal Server Error: /mailman3/lists/test.mydomain.com/held_messages Traceback (most recent call last): File "/usr/local/mailman/mailman-bundler/eggs/Django-1.8.14-py2.7.egg/django/core/handlers/base.py", line 132, in get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/local/mailman/mailman-bundler/eggs/Django-1.8.14-py2.7.egg/django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "/usr/local/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/generic.py", line 67, in dispatch return super(MailingListView, self).dispatch(request, *args, **kwargs) File "/usr/local/mailman/mailman-bundler/eggs/Django-1.8.14-py2.7.egg/django/views/generic/base.py", line 89, in dispatch return handler(request, *args, **kwargs) File "/usr/local/mailman/mailman-bundler/eggs/Django-1.8.14-py2.7.egg/django/utils/decorators.py", line 34, in _wrapper return bound_func(*args, **kwargs) File "/usr/local/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/auth/decorators.py", line 81, in wrapper return fn(*args, **kwargs) File "/usr/local/mailman/mailman-bundler/eggs/Django-1.8.14-py2.7.egg/django/utils/decorators.py", line 30, in bound_func return func.__get__(self, type(self))(*args2, **kwargs2) File "/usr/local/mailman/mailman-bundler/eggs/postorius-1.0.3-py2.7.egg/postorius/views/list.py", line 387, in get held_messages = utils.paginate(request, self.mailing_list.held, 20) File "/usr/local/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py", line 443, in held moderation_reasons=entry['moderation_reasons'], KeyError: u'moderation_reasons'
Cheers, Jean-Luc
On 08/17/2016 09:17 PM, Jean-Luc Wasmer wrote:
No matter what action I set for member posts (Hold for moderator, Reject) they are always delivered.
I don't know why this would be. Perhaps the member's moderation is set to Accept immediately - you can see this on ther member's options page in Postorius when logged in as a list owner.
When the message is delivered, what are the X-Mailman-Rule-Hits: and X-Mailman-Rule-Misses: headers?
When I tried from a non-member email address, the message got held but when I try to see it I get a Server Error (500) page. The log files shows:
ERROR 2016-08-18 01:04:30,231 base 21026 34722993152 Internal Server Error: /mailman3/lists/test.mydomain.com/held_messages Traceback (most recent call last): ... File "/usr/local/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py", line 443, in held moderation_reasons=entry['moderation_reasons'], KeyError: u'moderation_reasons'
This is apparently <https://gitlab.com/mailman/mailmanclient/issues/10> fixed by <https://gitlab.com/mailman/mailmanclient/merge_requests/16>
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2016-08-19 17:58, Mark Sapiro wrote:
On 08/17/2016 09:17 PM, Jean-Luc Wasmer wrote:
No matter what action I set for member posts (Hold for moderator, Reject) they are always delivered.
I don't know why this would be. Perhaps the member's moderation is set to Accept immediately - you can see this on ther member's options page in Postorius when logged in as a list owner.
Apart from "Mode of Delivery" that is set to "Regular" for the user, none of the following attributes are set:
Mail Delivery Receive own posts to the list Receive acknowledgement mails Conceal address from the subscriber list Avoid duplicate copies of messages
When the message is delivered, what are the X-Mailman-Rule-Hits: and X-Mailman-Rule-Misses: headers?
There is no X-Mailman-Rule-Hits header.
X-Mailman-Rule-Misses: approved; emergency; loop; member-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header; nonmember-moderation
By the way, I didn't mention before but in Settings | Message Acceptance, the "Acceptable aliases:" box contains "[]". When I try to Save changes after modifying something, I gut "An error occured: []" in the yellow banner (instead of "The settings have been updated.").
When I tried from a non-member email address, the message got held but when I try to see it I get a Server Error (500) page. The log files shows:
ERROR 2016-08-18 01:04:30,231 base 21026 34722993152 Internal Server Error: /mailman3/lists/test.mydomain.com/held_messages Traceback (most recent call last): ... File "/usr/local/mailman/mailman-bundler/eggs/mailmanclient-1.0.1-py2.7.egg/mailmanclient/_client.py", line 443, in held moderation_reasons=entry['moderation_reasons'], KeyError: u'moderation_reasons'
This is apparently <https://gitlab.com/mailman/mailmanclient/issues/10> fixed by <https://gitlab.com/mailman/mailmanclient/merge_requests/16>
Any ETA when this will be pushed to "mailman-bundler"?
Cheers, Jena-Luc
On 08/19/2016 10:39 PM, Jean-Luc Wasmer wrote:
On 2016-08-19 17:58, Mark Sapiro wrote:
On 08/17/2016 09:17 PM, Jean-Luc Wasmer wrote:
No matter what action I set for member posts (Hold for moderator, Reject) they are always delivered.
I don't know why this would be. Perhaps the member's moderation is set to Accept immediately - you can see this on ther member's options page in Postorius when logged in as a list owner.
Apart from "Mode of Delivery" that is set to "Regular" for the user, none of the following attributes are set:
Mail Delivery Receive own posts to the list Receive acknowledgement mails Conceal address from the subscriber list Avoid duplicate copies of messages
If you look at the user's options when logged in as a list owner, you should see an additional "Administration options" section below those with a "Moderation" setting. What is that set to?
...
By the way, I didn't mention before but in Settings | Message Acceptance, the "Acceptable aliases:" box contains "[]". When I try to Save changes after modifying something, I gut "An error occured: []" in the yellow banner (instead of "The settings have been updated.").
What happens if you clear the Acceptable aliases box before saving?
...
This is apparently <https://gitlab.com/mailman/mailmanclient/issues/10> fixed by <https://gitlab.com/mailman/mailmanclient/merge_requests/16>
Any ETA when this will be pushed to "mailman-bundler"?
I expect bundler will be updated when 3.1 is released and that should be soon.
You may find <https://wiki.list.org/x/17891998> of interest.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 2016-08-20 02:08, Mark Sapiro wrote:
On 08/19/2016 10:39 PM, Jean-Luc Wasmer wrote:
On 2016-08-19 17:58, Mark Sapiro wrote:
On 08/17/2016 09:17 PM, Jean-Luc Wasmer wrote:
No matter what action I set for member posts (Hold for moderator, Reject) they are always delivered.
I don't know why this would be. Perhaps the member's moderation is set to Accept immediately - you can see this on ther member's options page in Postorius when logged in as a list owner.
Apart from "Mode of Delivery" that is set to "Regular" for the user, none of the following attributes are set:
Mail Delivery Receive own posts to the list Receive acknowledgement mails Conceal address from the subscriber list Avoid duplicate copies of messages
If you look at the user's options when logged in as a list owner, you should see an additional "Administration options" section below those with a "Moderation" setting. What is that set to?
I log in as the admin user created with "mailman-web-django-admin createsuperuser", I created the list logged in as this admin user and its email address is displayed in the "Owners" sections of the "Members" tab. I only have that 1 other member and when I check it settings, the last section is "Avoid duplicate copies of messages?" and then there's the "Save" button.
By the way, I didn't mention before but in Settings | Message Acceptance, the "Acceptable aliases:" box contains "[]". When I try to Save changes after modifying something, I gut "An error occured: []" in the yellow banner (instead of "The settings have been updated.").
What happens if you clear the Acceptable aliases box before saving?
Then I get "The settings have been updated." after pressing "Save changes". But if I navigate elsewhere and come back, the brackets are back in the form.
You may find <https://wiki.list.org/x/17891998> of interest.
Indeed, I actually stumbled upon it yesterday. It would have helped me, specially setting up Apache's vhost (the example provided in the bundler only helped getting half of it working). One of the issues was the permissions to the run/wsgi path. Also, as I run on FreeBSD I had to create an rc script... I don't mind sharing it, it's not super advanced but it does the job.
On 08/20/2016 07:15 AM, Jean-Luc Wasmer wrote:
On 2016-08-20 02:08, Mark Sapiro wrote:
If you look at the user's options when logged in as a list owner, you should see an additional "Administration options" section below those with a "Moderation" setting. What is that set to?
I log in as the admin user created with "mailman-web-django-admin createsuperuser", I created the list logged in as this admin user and its email address is displayed in the "Owners" sections of the "Members" tab. I only have that 1 other member and when I check it settings, the last section is "Avoid duplicate copies of messages?" and then there's the "Save" button.
You probably have an older version of Postorius than I have. I am a few weeks behind at the moment, but I basically am running the heads of the master branches as described at <https://wiki.list.org/x/17891998>, so I am unable to see what you see.
Here's an example mailman shell session to see what various member moderation actions are.
mailman@mail:/opt/mailman/mailman-bundler$ bin/mailman shell mm3_test@python.org Welcome to the GNU Mailman shell The variable 'm' is the mm3_test@python.org mailing list
list(m.members.members) [<Member: None <barry@python.org> on mm3_test@python.org as MemberRole.member>, <Member: Mark Sapiro <mark@python.org> on mm3_test@python.org as MemberRole.member>, <Member: mark@msapiro.net on mm3_test@python.org as MemberRole.member>, <Member: gvanrossum@gmail.com on mm3_test@python.org as MemberRole.member>] m1 = list(m.members.members)[1] m2 = list(m.members.members)[2] m1.moderation_action <Action.defer: 4> m2.moderation_action <Action.accept: 3>
By the way, I didn't mention before but in Settings | Message Acceptance, the "Acceptable aliases:" box contains "[]". When I try to Save changes after modifying something, I gut "An error occured: []" in the yellow banner (instead of "The settings have been updated.").
What happens if you clear the Acceptable aliases box before saving?
Then I get "The settings have been updated." after pressing "Save changes". But if I navigate elsewhere and come back, the brackets are back in the form.
This is <https://gitlab.com/mailman/postorius/issues/51>.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Jean-Luc Wasmer
-
Mark Sapiro