SpamBayes support for gate_news

Bug #300176 reported by Skip Montanaro
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Undecided
Unassigned

Bug Description

On the python.org mail server we gate between comp.lang.python and
<email address hidden>. Incoming mail gets all sorts of scrutiny
(including, but not limited to, SpamBayes checks). Currently no checks of
any kind are performed on incoming Usenet posts. This patch provides
SpamBayes checking if Spambayes is installed and configured on the system
running gate_news. We are currently running 2.1.10. The patch is against
2.1.11.

Tags: patch
Revision history for this message
Skip Montanaro (smontanaro) wrote :

Here's a slightly updated patch. I couldn't tell what the admin doc source was (both txt and html
seemed generated to me), so I just edited the html. Also, I updated the gate_news change
to require the BAYESCUSTOMIZE environment variable to be set and added a FIXME comment
about holding suspected spam for review instead of dropping them.

Revision history for this message
Mark Sapiro (msapiro) wrote :

The admin doc source is in a separate branch at https://code.launchpad.net/mailman-administrivia (aka lp:mailman-administrivia). The source is the doc/*.tex files and doc/Makefile has details of how to generate the other files.

Revision history for this message
Skip Montanaro (smontanaro) wrote : Re: [Bug 300176] Re: SpamBayes support for gate_news

    Mark> The admin doc source is in a separate branch at
    Mark> https://code.launchpad.net/mailman-administrivia (aka lp:mailman-
    Mark> administrivia). The source is the doc/*.tex files and doc/Makefile
    Mark> has details of how to generate the other files.

Mark,

I checked out the mailman/stable and mailman-administrivia branches. I then
registered two new branches with Launchpad:

    lp:~smontanaro/mailman/SpamBayes
    lp:~smontanaro/mailman-administrivia/SpamBayes

Launchpad is telling me to "bzr push ...". From what directory do I do
that?

Thanks,

Skip

Revision history for this message
Barry Warsaw (barry) wrote :

Skip, push *from* the directories where you're doing your work *to* those branches you registered.

A couple of notes:

You generally don't need to pre-register branches with lp. bzr will do that for you the first time you push the branch. Also, if you set up your bazaar.conf or locations.conf file correctly, you can get bzr to automatically push to the right branch url. Otherwise, you'll need to specify the push target.

Check out https://help.launchpad.net/Code/UploadingABranch

Revision history for this message
Skip Montanaro (smontanaro) wrote :

    Barry> Skip, push *from* the directories where you're doing your work
    Barry> *to* those branches you registered.

With a little effort that worked. I had rearranged the mailman,
mailman/stable and mailman-administrivia repos a bit after pulling them. I
wound up using the --use-existing-dir flag which seemed to make bzr happy.
If someone could try pulling these:

    lp:~smontanaro/mailman/SpamBayes
    lp:~smontanaro/mailman-administrivia/SpamBayes

and let me know if I did things correctly, that would be great.

Skip

Revision history for this message
Mark Sapiro (msapiro) wrote :

I pulled both branches. They seem fine.

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.