Bugzilla email spam filtering

If you’ve got a mailing list dedicated only to bugzilla traffic, you might find these rules useful to filter out any spam. Since the Subject field of these lists are so rigid, we can obviously tell which emails are spam.

Use the following rules in your mailman config:

Rule 1: Discard any emails flagged as spam

matches? ^X-Spam-Flag: YES
action: discard

Rule 2: Accept any emails which fit our [BUG 1234..] subject header

matches? ^Subject:.*\[[bB][uU][gG]\s\d*\].*
action: accept

Rule 3: Discard or hold the rest, they’re probably spam!

matches? ^Subject: *
action: {hold,discard}


									

3 Comments

  1. Steve McLeod
    Posted October 31, 2008 at 5:06 pm | Permalink

    Seb,

    people still use Bugzilla? I shouldn’t underestimate people’s capacity for self-harm. :-)

    I would have thought all open source software switched to Jira by now.

    http://www.atlassian.com/software/jira/licensing.jsp#nonprofit

  2. Posted October 31, 2008 at 5:22 pm | Permalink

    Yes, I know, it’s quite something. I’m not sure of the reasons to sticking to bugzilla, but I imagine that it’s something along the lines of the immense amount of data gathered, familiarity etc.

    We’ve been using some of Atlassian’s products, and they’re truly excellent. Moving to Jira would be wonderful.

  3. dhaumann
    Posted October 31, 2008 at 10:49 pm | Permalink

    Hi Seb,

    I’ve only configured the 2nd rule
    matches? ^Subject:.*\[[bB][uU][gG]\s\d*\].*
    action: accept

    But still, a mail just arrived with this header and was held for moderation:
    [Bug 173969] New: Apostroph-delimited strings in JavaScript are not higlighted

    So it simply does not work. Maybe you can help here? #kate on IRC :)

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>