possible fix for Hold.py check order

Bug #557952 reported by jgarvas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Undecided
Unassigned

Bug Description

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

Revision history for this message
jgarvas (jgarvas-users) wrote :

The file patchfile was added: moves code around in Hold.py

Revision history for this message
bwarsaw (bwarsaw) wrote :

Logged In: YES
user_id=12800

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

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.