[Mailman-Users] using topics

2015-11-25 Thread Lucio Chiappetti
I am one of the co-moderators of a restricted discussion list within our 
organization (a nationwide research institution). The list is restricted 
in the sense posting is allowed to subscribers only, and subscription is 
allowed only to staff, associates, and former members.


So far we allowed also communications from the trade unions, in the sense 
they post a (signed) message from a non member account, it stops into 
moderation and one of the co-moderator lets it pass. We could have used 
also accept_these_nonmembers (as we do for recognized subscribers who post 
from alternate addresses) but since the various trade unions 
correspondents did not use a fixed address we did not do it.


Now the trade unions requested to be allowed to subscribe as regular users 
from a fixed address, which would relieve us moderators from the need of 
manual acceptance.


I hope this won't cause an excess of trade union related messages with 
respect to other messages, which can be resented by some of our users.


I thought one possibility was to enable "topics", to allow users to decide 
whether they want to see such messages or not.


I have some questions about topics.

- can a user select to receive all messages EXCLUDING a particular
  topic ? It looks like the interface allows to subscribe to one topic,
  and also to receive topic-less messages ... but what about one
  wants to receive ONLY topic-less messages ?

  Assuming messages are classified as :

   - topic trade union
   - no topic

  Shall one create a dummy placeholder topic which will be never
  populated ? or how can one assign a default topic ?

- can the mailman administrator assign topics based on the originator
  address instead of Subject or Keyword or regexp in the first n lines ?

  This may allow to tag the topics automatically (instead of relying on
  the originator using special tags, which is sort of hopeless)


If it helps, the list is managed by mailman 2.1.12 and is not on a 
computer in my institute (I have 2.1.14 on my machine which I use for 
other lists). Neither me nor the administrators of the central site are 
keen to change. but if a more recent version is more suited for this sort 
of filtering we might consider it.


Thanks

--

Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html

Do not like Firefox >=29 ?  Get Pale Moon !  http://www.palemoon.org
--
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


Re: [Mailman-Users] Reverse chronological date order for archives

2015-11-25 Thread ListGnome ProtonMail via Mailman-Users
Hi Mark,


I've tested the modified HyperDatabase.py file and it does indeed reverse the 
chronological order of the archives (but only in date view).
And also as you said, it was necessary to "/bin/arch --wipe LISTNAME" to 
reverse any existing archives.

Thanks again,
Mark

***
And the patch refactored for style against 2.1.20 is

$ diff -u 2.1/Mailman/Archiver/HyperDatabase.py

def first(self, archive, index):
self.__openIndices(archive)
+ if index == 'date':
+ dateIndex = 1
+ else:
+ dateIndex = 0
index = getattr(self, index + 'Index')
try:
+ if dateIndex == 1:
+ index.sorted.reverse()
key, msgid = index.first()
return msgid
except KeyError:
--
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