[Mailman-Users] Moderation bit not working?

2022-02-15 Thread billy noah
I continue to receive alerts on my list for *one particular user *when they
attempt to post to the list:

> *post from i...@example.com  requires approval*
>

The user has been added to the member list with the moderation toggle off.
As far as I can tell they are identical to other members that don't trigger
this alert and who's messages are automatically sent to the list.

Is there some additional step I need to take to allow this member to send
messages to the list without the need to approve them? Any ideas what might
be going wrong here?
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


Re: [Mailman-Users] Moderation Bit ?

2011-06-07 Thread Rob
On Jun 6, 2011, at 11:04 AM, Wayne Cook wrote:

 Hopefully, someone can answer this for me again.  I don't set many lists up 
 and thought I had saves what I'd been told once before :(
 
 When people subscribe to my list, the moderation bit isn't set, but I'd like 
 the members moderation bit to be set by default.  I can't find where to set 
 that default setting...can anyone help me?
 
 Mailman version 2.1.5
 
 Thanks
 Wayne

Privacy options… Sender Filters, first line of that settings page.

I always forget where that is too…
--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] Moderation Bit ?

2011-06-06 Thread Wayne Cook
Hopefully, someone can answer this for me again.  I don't set many  
lists up and thought I had saves what I'd been told once before :(


When people subscribe to my list, the moderation bit isn't set, but  
I'd like the members moderation bit to be set by default.  I can't  
find where to set that default setting...can anyone help me?


Mailman version 2.1.5

Thanks
Wayne

--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Moderation Bit ?

2011-06-06 Thread Mark Sapiro
On 6/6/11 8:04 AM, Wayne Cook wrote:
 
 When people subscribe to my list, the moderation bit isn't set, but I'd
 like the members moderation bit to be set by default.  I can't find
 where to set that default setting...can anyone help me?


Privacy options... - Sender filters - default_member_moderation

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, CaliforniaBetter use your sense - B. Dylan
--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Moderation Bit ?

2011-06-06 Thread Wayne Cook
thank you both...don't know why I couldn't find it.  Sometimes I think  
I have to many blind spots in my brain!


w


On Jun 6, 2011, at 11:39 AM, Mark Sapiro wrote:


On 6/6/11 8:04 AM, Wayne Cook wrote:


When people subscribe to my list, the moderation bit isn't set, but  
I'd

like the members moderation bit to be set by default.  I can't find
where to set that default setting...can anyone help me?



Privacy options... - Sender filters - default_member_moderation

--
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, CaliforniaBetter use your sense - B. Dylan


--
Mailman-Users mailing list Mailman-Users@python.org
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Moderation Bit Problem

2008-01-11 Thread Kathy Gee




Under Privacy options...-Sender filters member_moderation_notice is
blank and member_moderation_action is set to Hold.

Here is what I have from mailman's error log for a failed attempt (sent
from a moderated member):

Jan 11 08:39:40 2008 admin(28403):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit
Jan 11 08:39:54 2008 (15586) Uncaught runner exception: unbound method
reason_notice() must be called with ModeratedMemberPost instance as
first argument (got nothing instead)
Jan 11 08:39:54 2008 (15586) Traceback (most recent call last):
  File /usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py, line
111, in _oneloop
self._onefile(msg, msgdata)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py, line
169, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File
/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py, line
130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File
/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py, line
153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Moderate.py,
line 80, in process
ModeratedMemberPost)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Hold.py, line
223, in hold_for_approval
reason = Utils.wrap(exc.reason_notice())
TypeError: unbound method reason_notice() must be called with
ModeratedMemberPost instance as first argument (got nothing instead)

Jan 11 08:39:54 2008 (15586) SHUNTING:
1200069594.212882+ef9a62781ca483bd4077e680c970bd976ff74345
Jan 11 08:40:11 2008 admin(28515):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit
Jan 11 08:40:33 2008 admin(28773):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit
admin(28773): /usr/local/mailman-2.1.4-mills1/Mailman/MailList.py:862:
DeprecationWarning: raising a string exception is deprecated
  raise Errors.MMSubscribeNeedsConfirmation

-Original Message-
From: Mark Sapiro [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 11:57 AM
To: Kathy Gee; mailman-users@python.org
Subject: Re: [Mailman-Users] Moderation Bit Problem

Kathy Gee wrote:

When the moderation bit for a member is turned on, that member gets an
error message when trying to post a message.  The error message says
Your message could not be processed because of an internal error
(software problem).  We are very sorry.  The system administrator has
been notified of the problem.  I'm sure this message is pretty generic
therefore not much help.  The message is no where to be found in any
log
that I can see and it never gets to the tend to pending moderator
requests mode.


First thing to check is the list's Privacy options...-Sender filters
member_moderation_action and member_moderation_notice.

The only way I know that Mailman could be doing this is if that message
is set as member_moderation_notice, and member_moderation_action is
set to Reject.

Assuming that is not the reason, and that posts from unmoderated
members are processed normally, what are the full headers of this
message? Is there anything in Mailman's error log or othher logs with
a timestamp within a second or so of when this message is sent?

-- 
Mark Sapiro [EMAIL PROTECTED]The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] Moderation Bit Problem

2008-01-11 Thread Mark Sapiro
Kathy Gee wrote:

Here is what I have from mailman's error log for a failed attempt (sent
from a moderated member):

Jan 11 08:39:40 2008 admin(28403):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit


The above is not part of the problem. It is a result of using Mailman
earlier than 2.1.10 with Python 2.5.x


Jan 11 08:39:54 2008 (15586) Uncaught runner exception: unbound method
reason_notice() must be called with ModeratedMemberPost instance as
first argument (got nothing instead)
Jan 11 08:39:54 2008 (15586) Traceback (most recent call last):
  File /usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py, line
111, in _oneloop
self._onefile(msg, msgdata)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Queue/Runner.py, line
169, in _onefile
keepqueued = self._dispose(mlist, msg, msgdata)
  File
/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py, line
130, in _dispose
more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File
/usr/local/mailman-2.1.4-mills1/Mailman/Queue/IncomingRunner.py, line
153, in _dopipeline
sys.modules[modname].process(mlist, msg, msgdata)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Moderate.py,
line 80, in process
ModeratedMemberPost)
  File /usr/local/mailman-2.1.4-mills1/Mailman/Handlers/Hold.py, line
223, in hold_for_approval
reason = Utils.wrap(exc.reason_notice())
TypeError: unbound method reason_notice() must be called with
ModeratedMemberPost instance as first argument (got nothing instead)


Your Mailman/Handlers/Hold.py module is modified from the 2.1.4 base.
The offending line is line 212 in the base, not 223.

There is something wrong with this module or perhaps there is some
other incompatiblity between Mailman 2.1.4 and Python 2.5.x. Without
seeing exactly what has been changed in Hold.py, I can't say for sure.

I recommend upgrading Mailman as a start.


Jan 11 08:39:54 2008 (15586) SHUNTING:
1200069594.212882+ef9a62781ca483bd4077e680c970bd976ff74345
Jan 11 08:40:11 2008 admin(28515):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit
Jan 11 08:40:33 2008 admin(28773):
/usr/local/mailman-2.1.4-mills1/Mailman/Utils.py:469:
DeprecationWarning: raising a string exception is deprecated
  raise quickexit
admin(28773): /usr/local/mailman-2.1.4-mills1/Mailman/MailList.py:862:
DeprecationWarning: raising a string exception is deprecated
  raise Errors.MMSubscribeNeedsConfirmation


The above DeprecationWarnings are also not the cause of the problem.

-- 
Mark Sapiro [EMAIL PROTECTED]The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] Moderation Bit Problem

2008-01-10 Thread Mark Sapiro
Kathy Gee wrote:

When the moderation bit for a member is turned on, that member gets an
error message when trying to post a message.  The error message says
Your message could not be processed because of an internal error
(software problem).  We are very sorry.  The system administrator has
been notified of the problem.  I'm sure this message is pretty generic
therefore not much help.  The message is no where to be found in any log
that I can see and it never gets to the tend to pending moderator
requests mode.


First thing to check is the list's Privacy options...-Sender filters
member_moderation_action and member_moderation_notice.

The only way I know that Mailman could be doing this is if that message
is set as member_moderation_notice, and member_moderation_action is
set to Reject.

Assuming that is not the reason, and that posts from unmoderated
members are processed normally, what are the full headers of this
message? Is there anything in Mailman's error log or othher logs with
a timestamp within a second or so of when this message is sent?

-- 
Mark Sapiro [EMAIL PROTECTED]The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] Moderation Bit Problem

2008-01-09 Thread Kathy Gee
Help, someone?

 

When the moderation bit for a member is turned on, that member gets an
error message when trying to post a message.  The error message says
Your message could not be processed because of an internal error
(software problem).  We are very sorry.  The system administrator has
been notified of the problem.  I'm sure this message is pretty generic
therefore not much help.  The message is no where to be found in any log
that I can see and it never gets to the tend to pending moderator
requests mode.

 

Anyway, this happened after our system got upgraded from Fedora Core 3
to 7.  The Mailman version is 2.1.4.  Is there something I may have
missed in the upgrade that would cause Mailman's moderation bit to act
up?  I've only been introduced to Mailman as the administrator since
July last year.  So, bear with me my ignorance on this subject.

 

Thanks,

Kathy

 

 

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit silently turns off on some lists

2007-10-16 Thread Michael McAndrew
Thanks for this advice,

Very helpful - thought I'd write back to update you on what I did ... I
incorperated your ideas, especially as regards trying and excepting.  I
refined my original idea a bit more too ... I decided the safest way to do
things was to initially set everyone as moderated, and then only go through
those that are admins and set their mod bits to off.

so here is the script.  actually, one more small question - the line that
prints the error: should it have  after the print command?  Is that a part
of the python language I'm not familiar with, or is it something an email
client stuck in ?!?!

Thanks a lot,
michael



def wcpupdate(mlist):
  global wcp_adminsdata
  global wcp_listsdata
  # lock the list
  if not mlist.Locked():
mlist.Lock()
  # set all people to moderated
  for wcp_listsline in wcp_listsdata:
if mlist.internal_name()==wcp_listsline:
  for member in mlist.getMembers():
mlist.setMemberOption(member, mm_cfg.Moderate, mm_cfg.Yes)
  # set administrators to unmoderated
  for wcp_adminsline in wcp_adminsdata:
try:
  if mlist.internal_name()==wcp_adminsline[0]:
mlist.setMemberOption(wcp_adminsline[1].strip(), mm_cfg.Moderate,
mm_cfg.No)
except NotAMemberError:
  print  sys.stderr, '%s: not in %s' % (wcp_adminsline[1],
wcp_adminsline[0])
  mlist.Save()
  # unlock the list
  mlist.Unlock()



On 9/16/07, Mark Sapiro [EMAIL PROTECTED] wrote:

 Mark Sapiro wrote:
 
 Presumably this is a withlist script.  I would make the following
 change, but it may not help:
 
 @@ -1,3 +1,4 @@
 +import sys
  from Mailman.Errors import NotAMemberError
  from Mailman import mm_cfg
  from os.path import isfile
 @@ -7,7 +8,11 @@
  if isfile('vawupdate/scripts/vaw_wcp.txt'):
whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
for line in whoCanPostListsVAWFile:
 -whoCanPostListsData.append(line.strip().split(/))
 +entry = line.strip().split(/)
 +if len(entry)  3 or entry[2] not in ('0', '1'):
 +print  sys.stderr, 'Skipping invalid entry: %s' % str(entry)
 +continue
 +whoCanPostListsData.append(entry)
 
  def wcpupdate(mlist):
global whoCanPostListsData



 Looking more closely, I would do the following (I was initially thrown
 off by the import of NotAMemberError - I didn't notice you didn't use
 it)

 @@ -1,3 +1,4 @@
 +import sys
 from Mailman.Errors import NotAMemberError
 from Mailman import mm_cfg
 from os.path import isfile
 @@ -7,7 +8,11 @@
 if isfile('vawupdate/scripts/vaw_wcp.txt'):
whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
for line in whoCanPostListsVAWFile:
 -whoCanPostListsData.append(line.strip().split(/))
 +entry = line.strip().split(/)
 +if len(entry)  3 or entry[2] not in ('0', '1'):
 +print  sys.stderr, 'Skipping invalid entry: %s' % str(entry)
 +continue
 +whoCanPostListsData.append(entry)

 def wcpupdate(mlist):
global whoCanPostListsData
 @@ -15,10 +20,16 @@
  mlist.Lock()
for whoCanPostLine in whoCanPostListsData:
  if mlist.internal_name()==whoCanPostLine[0]:
 -  if whoCanPostLine[2]=='0':
 -mlist.setMemberOption(whoCanPostLine[1].strip(),
 mm_cfg.Moderate, mm_cfg.No)
 -  else:
 -mlist.setMemberOption(whoCanPostLine[1].strip(),
 mm_cfg.Moderate, mm_cfg.Yes)
 -  print whoCanPostLine[1], ' set'
 +try:
 +if whoCanPostLine[2]=='0':
 +mlist.setMemberOption(whoCanPostLine[1].strip(),
 +  mm_cfg.Moderate, mm_cfg.No)
 +else:
 +mlist.setMemberOption(whoCanPostLine[1].strip(),
 +  mm_cfg.Moderate, mm_cfg.Yes)
 +print whoCanPostLine[1], ' set'
 +except NotAMemberError:
 +print  sys.stderr, '%s: not in %s' % (whoCanPostLine[1],
 +whoCanPostLine[0])
mlist.Save()
mlist.Unlock()

 --
 Mark Sapiro  [EMAIL PROTECTED]   The highway is for gamblers,
 San Francisco Bay Area, Californiabetter use your sense - B. Dylan


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit silently turns off on some lists

2007-10-16 Thread Mark Sapiro
Michael McAndrew wrote:

Very helpful - thought I'd write back to update you on what I did ...


Thanks for the report.


actually, one more small question - the line that
prints the error: should it have  after the print command?  Is that a part
of the python language I'm not familiar with, or is it something an email
client stuck in ?!?!


The '' is part of the print command. it is used to print to an open
file descriptor other than sys.stdout. I.e.,

print 'some text'

and

print  sys.stdout, 'some text'

are equivalent, and you can print to any 'object' that has a write()
method with

print  object, 'some text'

In this case, the construct

print  sys.stderr, 'message text'

is used to send the error message to stderr rather than stdout.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] moderation bit silently turns off on some lists

2007-09-16 Thread Michael McAndrew
Hi there,

I operate a number of mailing lists.  Some of these lists are announce only
lists.  The annouce only lists work by setting everyone's moderation bit to
1 apart from those that have posting permission.  This is done
automatically by a script that takes its data from a remote database via a
text file that is created when requested.  (and yes, I know that's a long
winded way of doing things!)

But every now and again on some lists (its only happened so far on large
lists) all the moderation bits are set to 0 allowing anyone to post.  Any
ideas why this would be?

Below are the script that sets posting permissions [A] and a sample of the
text file that inputs into this script [B].

Any ideas why this would happen?  As always, many thanks if you can help.

PS I don't blame you if you tell me to use a simpler solution.  In fact, I
agree and I am completley redoing the project getting rid of the manual
synching and using default mailman admin interface.  But in the mean time it
is still a problem that I would be really grateful if someone could help me
find a solution to.

[A]
from Mailman.Errors import NotAMemberError
from Mailman import mm_cfg
from os.path import isfile

whoCanPostListsData = []

if isfile('vawupdate/scripts/vaw_wcp.txt'):
  whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
  for line in whoCanPostListsVAWFile:
whoCanPostListsData.append(line.strip().split(/))

def wcpupdate(mlist):
  global whoCanPostListsData
  if not mlist.Locked():
mlist.Lock()
  for whoCanPostLine in whoCanPostListsData:
if mlist.internal_name()==whoCanPostLine[0]:
  if whoCanPostLine[2]=='0':
mlist.setMemberOption(whoCanPostLine[1].strip(), mm_cfg.Moderate,
mm_cfg.No)
  else:
mlist.setMemberOption(whoCanPostLine[1].strip(), mm_cfg.Moderate,
mm_cfg.Yes)
  print whoCanPostLine[1], ' set'
  mlist.Save()
  mlist.Unlock()
[/A]

[B]
bme/[EMAIL PROTECTED]/1
bme/[EMAIL PROTECTED]/1
bme/[EMAIL PROTECTED]/1
bme/[EMAIL PROTECTED]/1
bme/[EMAIL PROTECTED]/1
bme/[EMAIL PROTECTED]/0
[/B]
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit silently turns off on some lists

2007-09-16 Thread Mark Sapiro
Michael McAndrew wrote:

I operate a number of mailing lists.  Some of these lists are announce only
lists.  The annouce only lists work by setting everyone's moderation bit to
1 apart from those that have posting permission.  This is done
automatically by a script that takes its data from a remote database via a
text file that is created when requested.  (and yes, I know that's a long
winded way of doing things!)

But every now and again on some lists (its only happened so far on large
lists) all the moderation bits are set to 0 allowing anyone to post.  Any
ideas why this would be?


Someone could log on to the admin interface and set everyone off using
the button under Additional Member Tasks on the Membership List page.

Some script could do it.

I know of no way Mailman would do it automatically.


Below are the script that sets posting permissions [A] and a sample of the
text file that inputs into this script [B].
snip


Presumably this is a withlist script.  I would make the following
change, but it may not help:

@@ -1,3 +1,4 @@
+import sys
 from Mailman.Errors import NotAMemberError
 from Mailman import mm_cfg
 from os.path import isfile
@@ -7,7 +8,11 @@
 if isfile('vawupdate/scripts/vaw_wcp.txt'):
   whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
   for line in whoCanPostListsVAWFile:
-whoCanPostListsData.append(line.strip().split(/))
+entry = line.strip().split(/)
+if len(entry)  3 or entry[2] not in ('0', '1'):
+print  sys.stderr, 'Skipping invalid entry: %s' % str(entry)
+continue
+whoCanPostListsData.append(entry)

 def wcpupdate(mlist):
   global whoCanPostListsData

As far as recommendations for a different way, I would set Privacy
options...-Sender filters-default_member_moderation to Yes if it
isn't already. Then I would set everyone to Moderated using the button
under Additional Member Tasks on the Membership List page.

At this point all members are moderated and all new members will be
moderated by default.

Then I would have the authorized posters post using an Approved: header
with the list's moderator password, but if you wish to have them be
unmoderated, just unmoderate them manually via the admin interface.
Unless the authorized posters change frequently, this should not be
too burdensome.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit silently turns off on some lists

2007-09-16 Thread Mark Sapiro
Mark Sapiro wrote:

Presumably this is a withlist script.  I would make the following
change, but it may not help:

@@ -1,3 +1,4 @@
+import sys
 from Mailman.Errors import NotAMemberError
 from Mailman import mm_cfg
 from os.path import isfile
@@ -7,7 +8,11 @@
 if isfile('vawupdate/scripts/vaw_wcp.txt'):
   whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
   for line in whoCanPostListsVAWFile:
-whoCanPostListsData.append(line.strip().split(/))
+entry = line.strip().split(/)
+if len(entry)  3 or entry[2] not in ('0', '1'):
+print  sys.stderr, 'Skipping invalid entry: %s' % str(entry)
+continue
+whoCanPostListsData.append(entry)

 def wcpupdate(mlist):
   global whoCanPostListsData



Looking more closely, I would do the following (I was initially thrown
off by the import of NotAMemberError - I didn't notice you didn't use
it)

@@ -1,3 +1,4 @@
+import sys
 from Mailman.Errors import NotAMemberError
 from Mailman import mm_cfg
 from os.path import isfile
@@ -7,7 +8,11 @@
 if isfile('vawupdate/scripts/vaw_wcp.txt'):
   whoCanPostListsVAWFile = open('vawupdate/scripts/vaw_wcp.txt', 'r')
   for line in whoCanPostListsVAWFile:
-whoCanPostListsData.append(line.strip().split(/))
+entry = line.strip().split(/)
+if len(entry)  3 or entry[2] not in ('0', '1'):
+print  sys.stderr, 'Skipping invalid entry: %s' % str(entry)
+continue
+whoCanPostListsData.append(entry)

 def wcpupdate(mlist):
   global whoCanPostListsData
@@ -15,10 +20,16 @@
 mlist.Lock()
   for whoCanPostLine in whoCanPostListsData:
 if mlist.internal_name()==whoCanPostLine[0]:
-  if whoCanPostLine[2]=='0':
-mlist.setMemberOption(whoCanPostLine[1].strip(),
mm_cfg.Moderate, mm_cfg.No)
-  else:
-mlist.setMemberOption(whoCanPostLine[1].strip(),
mm_cfg.Moderate, mm_cfg.Yes)
-  print whoCanPostLine[1], ' set'
+try:
+if whoCanPostLine[2]=='0':
+mlist.setMemberOption(whoCanPostLine[1].strip(),
+  mm_cfg.Moderate, mm_cfg.No)
+else:
+mlist.setMemberOption(whoCanPostLine[1].strip(),
+  mm_cfg.Moderate, mm_cfg.Yes)
+print whoCanPostLine[1], ' set'
+except NotAMemberError:
+print  sys.stderr, '%s: not in %s' % (whoCanPostLine[1],
+whoCanPostLine[0])
   mlist.Save()
   mlist.Unlock()

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit

2007-08-18 Thread Mark Sapiro
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Guilherme Funchal wrote:
 
 How to turn-off moderation bit from command line for one user ?


See http://veenet.value.net/~msapiro/scripts/set_mod.py (mirrored at
http://fog.ccsf.edu/~msapiro/scripts/set_mod.py).

- --
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFGx8/UVVuXXpU7hpMRAm+nAJ9puDdHriqTqukMdu4/1LDt12PAKwCgvEnw
mn1uzRn2tiRSw2KMeJu2iGI=
=kyMc
-END PGP SIGNATURE-
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] moderation bit

2007-08-17 Thread Guilherme Funchal
Hi!

How to turn-off moderation bit from command line for one user ?

One big hug !

-- 
Você cria o seu próprio universo a medida que caminha


==
Guilherme Funchal da Silva .`.
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit off on explicitly selected users

2007-05-17 Thread Tomas Macek
 Tomas Macek wrote:

 we are using mailman 2.1.5 with Postfix. On our announce-only list we have 
 subscribed all of our employees. This list is fully moderated, so when 
 someone posts, the message waits for approving. That's fine. Now I need to 
 have some users (3 mail addresses) of the subscribes, that can post to the 
 list without moderation and waiting for approving from the moderator. Where 
 can I specify these adresses? I do not use the mailman's web interface.

 According to the posts I have found on google, this should be done by 
 modifying the moderation bit on each user, but I cannot find where it could 
 be done in the config file?


 It can be done, but it is tricky. You have to call the list method to
 do it.


 The config file is the one obtained from the ./config_list -o list.conf 
 MyList.
 When I specify this in

 owner = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
 moderator = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL 
 PROTECTED]']

 it does not help, the message from [EMAIL PROTECTED] waits for approving.


 You made these addresses both owner and moderator which is redundant
 and only means that they will receive notices for the owner/moderator.
 It has nothing to do with posting. Go to the FAQ wizard
 http://www.python.org/cgi-bin/faqw-mm.py and see FAQ's 3.27, 3.45
 and 3,60 for more on this.


 I set up this further settings:
 default_member_moderation = True
 member_moderation_action = 0
 generic_nonmember_action = 3

 I tried to setup the config like here 
 http://www.modwest.com/help/kb13-195.html, but I think this is the case I 
 have now - any message that came to the list is moderated, without 
 exceptions. But I want these exceptions - some people can post without 
 moderation.


 See FAQ 3.11 for our advice on this.


 Can anyone help me? If you want to know any other options I have in the 
 config, let me know please.


 Why can't you use the web interface?
We don't want to use the web interface, because we don't want to have another 
software running on our mailserver - we understand it as another possible 
security hole.


 from Mailman import mm_cfg
 mlist.setMemberOption('[EMAIL PROTECTED]', mm_cfg.Moderate, 0)
 del mm_cfg
This works, I used this, thanks!

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] moderation bit off on explicitly selected users

2007-05-04 Thread Tomas Macek
Hi,
we are using mailman 2.1.5 with Postfix. On our announce-only list we have 
subscribed all of our employees. This list is fully moderated, so when someone 
posts, the message waits for approving. That's fine. Now I need to have some 
users (3 mail addresses) of the subscribes, that can post to the list without 
moderation and waiting for approving from the moderator. Where can I specify 
these adresses? I do not use the mailman's web interface.

According to the posts I have found on google, this should be done by modifying 
the moderation bit on each user, but I cannot find where it could be done in 
the config file? The config file is the one obtained from the ./config_list -o 
list.conf MyList.
When I specify this in

 owner = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
 moderator = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']

it does not help, the message from [EMAIL PROTECTED] waits for approving.

I set up this further settings:
default_member_moderation = True
member_moderation_action = 0
generic_nonmember_action = 3

I tried to setup the config like here 
http://www.modwest.com/help/kb13-195.html, but I think this is the case I have 
now - any message that came to the list is moderated, without exceptions. But I 
want these exceptions - some people can post without moderation.

Can anyone help me? If you want to know any other options I have in the config, 
let me know please.

Many thanks, Tomas

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit off on explicitly selected users

2007-05-04 Thread Mark Sapiro
Tomas Macek wrote:

we are using mailman 2.1.5 with Postfix. On our announce-only list we have 
subscribed all of our employees. This list is fully moderated, so when someone 
posts, the message waits for approving. That's fine. Now I need to have some 
users (3 mail addresses) of the subscribes, that can post to the list without 
moderation and waiting for approving from the moderator. Where can I specify 
these adresses? I do not use the mailman's web interface.

According to the posts I have found on google, this should be done by 
modifying the moderation bit on each user, but I cannot find where it could be 
done in the config file?


It can be done, but it is tricky. You have to call the list method to
do it.


The config file is the one obtained from the ./config_list -o list.conf MyList.
When I specify this in

 owner = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL PROTECTED]']
 moderator = ['[EMAIL PROTECTED]', '[EMAIL PROTECTED]', '[EMAIL 
 PROTECTED]']

it does not help, the message from [EMAIL PROTECTED] waits for approving.


You made these addresses both owner and moderator which is redundant
and only means that they will receive notices for the owner/moderator.
It has nothing to do with posting. Go to the FAQ wizard
http://www.python.org/cgi-bin/faqw-mm.py and see FAQ's 3.27, 3.45
and 3,60 for more on this.


I set up this further settings:
default_member_moderation = True
member_moderation_action = 0
generic_nonmember_action = 3

I tried to setup the config like here 
http://www.modwest.com/help/kb13-195.html, but I think this is the case I have 
now - any message that came to the list is moderated, without exceptions. But 
I want these exceptions - some people can post without moderation.


See FAQ 3.11 for our advice on this.


Can anyone help me? If you want to know any other options I have in the 
config, let me know please.


Why can't you use the web interface? If you can't use the web
interface, you must be approving posts by email which means you know
how to use the Approved: header. The best way to post to an announce
list is to use the Approved: header with the list password in the
post. If you do this, the post will not be held.

If you allow certain, unmoderated members to post, anyone can post by
spoofing their address. See FAQ 3.11 and 3.34 for more on this.

If you still want to unmoderate a specific user, and you can't use the
web, you can put the following 3 lines in input to config_list.

from Mailman import mm_cfg
mlist.setMemberOption('[EMAIL PROTECTED]', mm_cfg.Moderate, 0)
del mm_cfg

You can put additional mlist.setMemberOption() lines between the first
one and the del mm_cfg line.

-- 
Mark Sapiro [EMAIL PROTECTED]   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] moderation bit via command line

2006-04-26 Thread Matthew Clarkson
Is there a way to set the moderation bit (on/off) for a user on a 
specific list by the command line?

The closest thing I have found is on
http://mail.python.org/pipermail/mailman-users/2005-February/042392.html
but I would like to stay away from using a python script like this if 
possible.

--
Matthew Clarkson
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


Re: [Mailman-Users] moderation bit via command line

2006-04-26 Thread Patrick Bogen
On 4/26/06, Matthew Clarkson [EMAIL PROTECTED] wrote:
 The closest thing I have found is on
 http://mail.python.org/pipermail/mailman-users/2005-February/042392.html
 but I would like to stay away from using a python script like this if
 possible.
If you're using Mailman, I'm afraid you're already using python scripts...


That said, I think bin/withlist is the only way to do this.

--
- Patrick Bogen
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=showamp;file=faq01.027.htp


[Mailman-Users] moderation bit not working

2003-05-31 Thread admin

running mailman version 2.1.1

all the users on a particular list have the moderation bit checked but still
are able to post to the List.  what else should I have set so only few users
can post to the list.

- Noah


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] moderation bit not working

2003-05-31 Thread admin
running mailman version 2.1.1

all the users on a particular list have the moderation bit checked but still
are able to post to the List.  what else should I have set so only few users
can post to the list.

- Noah

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org