[Mailman-Users] accepting posts based on a header-field

Mark Sapiro msapiro at value.net
Wed May 31 16:43:08 CEST 2006


IEM - network operating center wrote:
>
>my basic problem is, that i want to forward mails from one mailing list 
>to another (on both lists only subscribers can post):
>the setting is as follows: there is an "announce"-list and a 
>"users"-list; mails going to the "announce"-list should also go to the 
>"users"-list, so people don't have to subscribe to both lists
>the subscribers to both lists overlap, but there are a lot of users 
>subscribed to only one of them.


There is a patch
<http://sourceforge.net/tracker/index.php?func=detail&aid=1220144&group_id=103&atid=300103>
which would allow you to specify the "announce" list in the "users"
list's accept_these_nonmembers. This would solve your problem and is a
candidate for inclusion in Mailman 2.2, but in the mean time it is
still a patch which you don't want to do.



>so my second thought was to auto-accept postings to the "users" list 
>which has a special header-field (i thought that the "List-ID"-field 
>would just be ok for my purposes).
>unfortunately i found that this wasn't possible (i am running debian and 
>tried both 2.1.5-8sarge2 (which is basically 2.1.5 with some 
>cross-site-scripting security issues fixed) and 2.1.8)


You could do this with a custom handler which is not a patch in that
once it is implemented and installed, it survives upgrades. See
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.067.htp>
for info on custom handlers and see Mailman/Handlers/Approve.py for
details of what needs to be done to accept a post based on a header -
basically, recognize the header and set the 'approved' flag in the
message metadata.

-- 
Mark Sapiro <msapiro at value.net>       The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan




More information about the Mailman-Users mailing list