hi
I had few basic questions about user management in Mailman
- How do I know when a user registered himself with a mailing list?
- How do I block particular email ids/emails from a particular domain from becoming subscribers of a list?
--
B.G. Mahesh http://www.greynium.com/ http://www.oneindia.in/ http://www.click.in/ - Free Indian Classifieds
BG Mahesh wrote:
- How do I know when a user registered himself with a mailing list?
General Options->admin_notify_mchanges = yes
- How do I block particular email ids/emails from a particular domain from becoming subscribers of a list?
Privacy options...->Subscription rules->ban_list
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi, I got a system crush on my linux server, and after I did rescue everything, the following weird problem has appeared. There is no problem with postings of nonmoderated members, but whenever a moderated member sends mail to a list, the message gets lost and following log appears in 'log/error'.
Thanks for help.
Onur.
Feb 08 18:53:37 2007 (1904) Uncaught runner exception: unbound method reason_notice() must be called with ModeratedMemberPost instance as first argument (got nothing instead) Feb 08 18:53:37 2007 (1904) Traceback (most recent call last): File "/var/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop self._onefile(msg, msgdata) File "/var/mailman/Mailman/Queue/Runner.py", line 167, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/var/mailman/Mailman/Handlers/Moderate.py", line 67, in process ModeratedMemberPost) File "/var/mailman/Mailman/Handlers/Hold.py", line 216, 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)
Access over 1 million songs - Yahoo! Music Unlimited.
M. Onur ERGiN wrote:
I got a system crush on my linux server, and after I did rescue everything, the following weird problem has appeared. There is no problem with postings of nonmoderated members, but whenever a moderated member sends mail to a list, the message gets lost and following log appears in 'log/error'.
<snip>
Feb 08 18:53:37 2007 (1904) Uncaught runner exception: unbound method reason_notice() must be called with ModeratedMemberPost instance as first argument (got nothing instead) Feb 08 18:53:37 2007 (1904) Traceback (most recent call last): File "/var/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop self._onefile(msg, msgdata) File "/var/mailman/Mailman/Queue/Runner.py", line 167, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/var/mailman/Mailman/Handlers/Moderate.py", line 67, in process ModeratedMemberPost) File "/var/mailman/Mailman/Handlers/Hold.py", line 216, 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)
It seems you probably didn't rescue everything properly. This error in the hold_for_approval() function in Hold.py should not be occurring unless you wound up post-rescue using a pre 2.1.9 Mailman with Python 2.5
At the point of the exception exc is a class ModeratedMemberPost instead of an instance of that class, yet the beginning of hold_for_approval() has
if isinstance(exc, ClassType) or isinstance(exc, type(type)):
# Go ahead and instantiate it now.
exc = exc()
or pre Mailman 2.1.9
if type(exc) is ClassType:
# Go ahead and instantiate it now.
exc = exc()
This should render the exception 'impossible' unless you are using a pre 2.1.9 Mailman with Python 2.1.5. If so, I think this is an incompatability.
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Right, I have Mailman 2.1.7 and Python 2.5. Now, should I change the version of Python or Mailman? or, is there anything else better that you could suggest?
Thanks, Onur.
Mark Sapiro <msapiro@value.net> wrote: M. Onur ERGiN wrote:
I got a system crush on my linux server, and after I did rescue everything, the following weird problem has appeared. There is no problem with postings of nonmoderated members, but whenever a moderated member sends mail to a list, the message gets lost and following log appears in 'log/error'.
Feb 08 18:53:37 2007 (1904) Uncaught runner exception: unbound method reason_notice() must be called with ModeratedMemberPost instance as first argument (got nothing instead) Feb 08 18:53:37 2007 (1904) Traceback (most recent call last): File "/var/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop self._onefile(msg, msgdata) File "/var/mailman/Mailman/Queue/Runner.py", line 167, in _onefile keepqueued = self._dispose(mlist, msg, msgdata) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose more = self._dopipeline(mlist, msg, msgdata, pipeline) File "/var/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline sys.modules[modname].process(mlist, msg, msgdata) File "/var/mailman/Mailman/Handlers/Moderate.py", line 67, in process ModeratedMemberPost) File "/var/mailman/Mailman/Handlers/Hold.py", line 216, 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)
It seems you probably didn't rescue everything properly. This error in the hold_for_approval() function in Hold.py should not be occurring unless you wound up post-rescue using a pre 2.1.9 Mailman with Python 2.5
At the point of the exception exc is a class ModeratedMemberPost instead of an instance of that class, yet the beginning of hold_for_approval() has
if isinstance(exc, ClassType) or isinstance(exc, type(type)):
# Go ahead and instantiate it now.
exc = exc()
or pre Mailman 2.1.9
if type(exc) is ClassType:
# Go ahead and instantiate it now.
exc = exc()
This should render the exception 'impossible' unless you are using a pre 2.1.9 Mailman with Python 2.1.5. If so, I think this is an incompatability.
-- Mark Sapiro The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & Drink Q&A.
On 2/8/07, M. Onur ERGiN <monurergin@yahoo.com> wrote:
Right, I have Mailman 2.1.7 and Python 2.5. Now, should I change the version of Python or Mailman? or, is there anything else better that you could suggest?
Upgrading to the newest Mailman is always a good choice.
--
- Patrick Bogen
Patrick Bogen wrote:
On 2/8/07, M. Onur ERGiN <monurergin@yahoo.com> wrote:
Right, I have Mailman 2.1.7 and Python 2.5. Now, should I change the version of Python or Mailman? or, is there anything else better that you could suggest?
Upgrading to the newest Mailman is always a good choice.
Agreed!
There are at least 3 modules in pre 2.1.9 Mailman that are not compatable with Python 2.5. The best bet is to upgrade Mailman to 2.1.9, but for your immediate problem, you could download the following three modules from sourceforge and copy them to your installation and restart mailman. The modules/versions you need are:
and
<http://mailman.svn.sourceforge.net/viewvc/mailman/branches/Release_2_1-maint...>
-- Mark Sapiro <msapiro@value.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
BG Mahesh -
M. Onur ERGiN -
Mark Sapiro -
Patrick Bogen