feature: unified membership allow post list.

Bug #265851 reported by Jared Mauch
2
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Unassigned

Bug Description

i host a variety of lists that obtain posts from
members and non-members alike. they also have times
where the email address they send from changes. i'd
like the ability to create a global list of people that
are allowed to post to lists and have it be
enabled/disabled on a per-list basis.

eg:

list1 - use list members, extra people and
GLOBAL_allow_list
list2 - use list members, extra people only.

[http://sourceforge.net/tracker/index.php?func=detail&aid=669201&group_id=103&atid=100103]

Revision history for this message
Banerian (banerian) wrote :

in privacy options, it would be also good if regexp or
globs worked in the configuration option "Addresses of
members accepted for posting to this list without implicit
approval requirement"

without this ability to use regexp or globs, such as

.*@my.domain.org allowing posts from certain domains is
somewhat painful.

Revision history for this message
Dave Neary (dneary) wrote :

There is a patch for this by Jon Carnes from 2003 that uses the special list name "post-only" for mailman 2.1 which still applies pretty cleanly to Mailman/Handlers/Moderate.py on the tip of the 2.1 branch today. I assume it could easily be adapted for the 3.0 branch.

http://<email address hidden>/msg14876.html

The patch:

*** jonc.Moderate.py Mon Jan 27 10:23:03 2003
--- Moderate.py Mon Jan 27 13:19:33 2003
***************
*** 25,28 ****
--- 25,30 ----
  from Mailman import Utils
  from Mailman import Message
+ from Mailman import MailList
+ from Mailman import MemberAdaptor
  from Mailman import Errors
  from Mailman.i18n import _
***************
*** 45,48 ****
--- 47,59 ----

  ^L
+ def CheckPostOnly(sender):
+ try:
+ m = MailList.MailList('post-only', lock=0)
+ return m.isMember(sender)
+ except Errors.MMListError:
+ return 0
+
+
+ ^L
  def process(mlist, msg, msgdata):
      if msgdata.get('approved'):
***************
*** 89,92 ****
--- 100,105 ----
      # From here on out, we're dealing with non-members.
      if matches_p(sender, mlist.accept_these_nonmembers):
+ return
+ if CheckPostOnly(sender):
          return
      if matches_p(sender, mlist.hold_these_nonmembers):

Revision history for this message
Mark Sapiro (msapiro) wrote :

It seems that creating a list, say post-only, and putting '@post-only' in accept_these_nonmembers of those lists for which you want this enabled satisfies this request. This has been available since Mailman 2.1.10. See <https://bugs.launchpad.net/mailman/+bug/558204>.

Changed in mailman:
status: New → Fix Committed
Mark Sapiro (msapiro)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.