On 4/22/20 11:52 AM, Mark Sapiro wrote:
I'm currently working on a better fix. I'll post here on my progress.
I've got a tentative fix at <https://gitlab.com/mailman/postorius/-/merge_requests/500/>. You can see the changes there to the file src/postorius/views/list.py.
This fix is limited in that it should enable FILTER_VHOST work in an environment where there are domains with web host different from mail host, but if there are multiple domains with the same web host but differing mail hosts, going to that domain's Postorius lists view will show all domains as if FILTER_VHOST is False.
I.e. consider the following set of domains:
mail host web host example.com lists.example.com example.net example.net example.org lists.example.org example.edu lists.example.org
With the fix installed and FILTER_VHOST = True
https://lists.example.com/postorius/lists/ will show only the example.com lists
https://example.net/postorius/lists/ will show only the example.net lists
but https://lists.example.org/postorius/lists/ will show all lists, not just the example.org and example.edu lists.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan