Bug#488584: [Pkg-mailman-hackers] Bug#488584: Uncaught runner exception: matches_p() takes exactly 3 arguments (2 given)

2008-07-08 Thread Thijs Kinkhorst
tags 488584 pending
thanks

On Tue, July 8, 2008 01:06, Joey Hess wrote:
 The following seems to work:

 if mlist.isMember(sender) or \ matches_p(sender,
 mlist.accept_these_nonmembers, mlist.internal_name()):

This was independently confirmed by another user of this extension, so
I've added the fix to our repository. Thanks for your help.


Thijs




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#488584: [Pkg-mailman-hackers] Bug#488584: Uncaught runner exception: matches_p() takes exactly 3 arguments (2 given)

2008-07-07 Thread Thijs Kinkhorst
Hi Joey,

 Jun 29 17:37:06 2008 (23141) Uncaught runner exception: matches_p() takes
 exactly 3 arguments (2 given) 

 I tried commenting out the Spamassassin setting in mm_cfg.py and restarting
 mailman to work around this. For some reason that didn't help.

 Ended up modifying the code to not call matches_p, since I couldn't
 immediatly see how to determine the listname parameter that it takes as
 its third parameter.

That's unfortunate. I don't use that extension myself so I'm not immediately 
available to test it. It was once included from an upstream that has since 
gone awol...

From inspecting other code, getting the listname like this should work:

listname = mlist.internal_name()

Could you verify that for me please?


thanks,
Thijs


pgpUrXyaur8sB.pgp
Description: PGP signature


Bug#488584: [Pkg-mailman-hackers] Bug#488584: Uncaught runner exception: matches_p() takes exactly 3 arguments (2 given)

2008-07-07 Thread Joey Hess
Thijs Kinkhorst wrote:
 That's unfortunate. I don't use that extension myself so I'm not immediately 
 available to test it. It was once included from an upstream that has since 
 gone awol...
 
 From inspecting other code, getting the listname like this should work:
 
 listname = mlist.internal_name()
 
 Could you verify that for me please?

The following seems to work:

if mlist.isMember(sender) or \
   matches_p(sender, mlist.accept_these_nonmembers, 
mlist.internal_name()):

Dislaimer: Not a Python Programmer

-- 
see shy jo


signature.asc
Description: Digital signature