#134 possible fix for Hold.py check order

Mailman 2.0.x
Jeff Garvas

I don't like the way Mailman checks posts in Hold.py -- I
posted to mailman-users and created a bug, but this
was probably too low of a priority for anyone to notice it.

Basically I want to know if a user posting to a list is a
subscriber (even if the list is moderated) when the list is
in "subscriber only" mode.

I went into Hold.py, knowing almost nothing about
Python, and basically took the if block that checks for
moderated status and moved it below the if block that
checks for subscriber status.

I created this patch by putting my version of Hold.py in
the root of the directory you get when you un-tar
mailman, then I ran:

diff -C 2 Mailman/Handlers/Hold.py Hold.py

This might not be the proper way to make the patch file,
but I've never done it before.

I would like some input/feedback on if this is safe. I
can't fathom this breaking anything, but others obviously
know this code much better than I do -- I just learned
how to compile my python script last night ;)



  • Jeff Garvas

    Jeff Garvas - 2002-06-11

    moves code around in Hold.py

  • Barry Warsaw

    Barry Warsaw - 2002-08-08
    • status: open --> closed-out-of-date
  • Barry Warsaw

    Barry Warsaw - 2002-08-08

    Logged In: YES

    Your patch looks fine, but I'm closing it anyway. ;) It's
    out of date for MM2.1. Thanks though!


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks