[Mailman-Users] Subscription flood
mark at msapiro.net
Wed May 14 00:10:56 CEST 2014
On 05/13/2014 12:54 PM, Bill Christensen wrote:
> Sorry to be dense, but how do I apply that patch?
1)Save the patch to a file.
2)Edit the file with an editor that won't change indentation or wrap or
fill lines, i.e. a text editor, not a word processor, and change
problem_list in the line
+ if listname = 'problem_list':
to the all lower case name of the list. If you wanted to apply it to a
few, but not all lists, you could change the line to something like
+ if listname in ('problem_list', 'list2', 'list3'):
Note that the quotes around the literal list names are important, but
there are no quotes around the variable listname.
3) Give the command
(all on one line)
4) Give the command
patch /path/to/mailman/Cgi/Mailman/subscribe.py < /path/to/edited/patch
(all on one line)
5) Go to a URL like <http://your.server/Mailman/subscribe/problem_list>
Note you don't need to restart Mailman first as this patch only affects
web accesses which are always new CGI processes.
The possible results are:
1) A page that says
Web subscribe not allowed /problem_list/
This says all is good.
2) A page that says
problem_list Subscription results
You must supply a valid email address.
This says the patch wasn't applied or for some other reason (maybe
problem_list not changed or misspelled) isn't working.
3) a page that says
We hit a bug.
This says there is something broken in the patched module. You can leave
it broken which will disable all subscribes or maybe only problem_list
subscribes depending on the exact error, or you can copy the
subscribe.py.bak file from step 3) back over subscribe.py.
In any case, Mailman's error log will have an exception and traceback
from what went wrong.
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users