On Thu, Jan 2, 2020, at 3:16 PM, Steven Maddox wrote:
Lo Folks,
Subject says it all really, is there anyway to mark a list as one which should never be shown as inactive on the HyperKitty web interface?
We've got a list which we consider to be "active", it's just that there might be the odd month here or there which it won't show activity.
Failing having such a setting (as described above)... maybe there is a way of changing what it considers to be 'inactive' (I'm assuming that it is 30 days?).
At the moment (in order to counteract commit 156f4cda) I've dropped this into templates/hyperkitty/bottom.html to uncheck the "Hide Inactive" checkbox... but that doesn't actually stop HyperKitty from considering it inactive - just shows it in dark grey. <script>
document.querySelector("input[type='checkbox'][value='inactive']").checked = false; </script>
Firstly, I think this is something that should be configurable by the administrator. To show or hide the inactive lists by default. I have created an issue for this:
https://gitlab.com/mailman/hyperkitty/issues/276
On to your question, there is currently no way to change what is considered an inactive list, without changing the source code of couse.
The current logic to determine if a list is inactive is based on whether it had any posts in "recent date" (search for "inactive" keyword in templates/hyperkitty/index.html and you'll find the logic to add an "inactive" class to the UI elements of the list).
What is considered a "recent date" is defined as 32 days in hyperkitty/models/mailinglist.py#L1121. I think it would be reasonable to make this configurable too, although, it would affect more things than just the list of inactive lists. For example, the "Recent threads" on the MailingList's info page is calculated based on these dates.
-- thanks, Abhilash Raj (maxking)