Announcement

Collapse
No announcement yet.

Kmail/Bogofilter - not filtering

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Kmail/Bogofilter - not filtering

    Hi Guys,

    I've seen a post similar to this in 'previous releases' but no answers to the thread.

    Even though I've set up kmail using the wizard to use Bogofilter, it seems to do nothing.. I still get all my crappy spam - no matter if I mark them as spam, I still get the same dumb messages from the same senders.

    Am I missing something? Is there something else to do in the setup?

    TIA.

    #2
    Re: Kmail/Bogofilter - not filtering

    I use bogofilter and love it. It will take a few times before it gets really good. I'd recommend once a week for a month or so. I also have a subfolder under folder "bogospam" called "spamholding" so I can review the incoming spam and delete/remove it or move it back to inbox if it is a good email. (otherwise it'll get lost in your huge bogospam folder). Create the filters under "Settings" / "Configure filters" (not POP filters).

    The webversion of this how-to was way to complicated and it doesn't need to be.
    -apt-get install bogofilter
    -Put bogofilter.cf in /etc
    -Create a dir /home/yourusername/.bogofilter
    -Create 2 folders in kmail, bogoNonSpam and bogoSpam (case sens)
    -Create subfolder under bogoSpam called spamholding
    -Copy or Move your kmail spam messages to bogoSpam, and non to bogoNonSpam
    -Run Update_Bogofilter script. This will create files in ~/.bogofilter
    (note the last image which is advanced tab on all filters)

    Note: On "Advanced" tab of each filter, be sure to check "On incoming messages" and "From All Accounts".

    -Setup 3 filters in kmail: (ALL data below is case sensitive and must be exact!)
    First filter call it bogofilter_Check (You can use just this one to test it working)
    Match any of the following / <any header> matches reg expr / .*
    Remove Header / X-Bogosity
    Remove Header / X-Attachments
    Pipe Through / /usr/bin/bogofilter -p -e -v
    X to incoming, X on manual filtering, X Add to Apply Filters Menu

    Second filter call it bogo-MoveIfSpam (case sensitive on below commands)
    Match all of the following: X-Bogosity / contains / Spam,tests=bogofilter,
    Move into folder / Local Folders/bogoSpam/spamholding
    Mark As / Spam
    X to incoming, X on manual filtering

    Third filter call it bogo-MoveIfUnsure
    Match all of the following / X-Bogosity / contains / Unsure, tests=bogofilter,
    Move into folder / Local Folders/bogoSpam/spamholding
    Mark As / Spam
    X to incoming messages, X on manual filtering, X If this filter matches, stop here

    Comment


      #3
      Re: Kmail/Bogofilter - not filtering

      Thanks - I'll give this a try.. Seems pretty complicated - I thought the Wizard would deal with this.. I can't imagine a newbie doing this..
      (Thankfully I'm not.. but I am to Bogofilter)

      Comment


        #4
        Re: Kmail/Bogofilter - not filtering

        It looks harder than it is. It is pretty simple really. If this forum accepted screenshots, I'd be able to show you with 3 screenshots. 1 for each filter.

        Comment


          #5
          Re: Kmail/Bogofilter - not filtering

          I would like to give this a try. Could you e mail me the screen shots? Thanks
          m.finkel@yahoo.com

          Comment


            #6
            Re: Kmail/Bogofilter - not filtering SOLVED for me

            I am having trouble with this one too.

            In a previous incarnation of ubuntu / kmail / bogofilter this was all just working as it should.

            I had to reinstall and now it does not automagically move recognized spam to the trash folder anymore like it used to. And last time I didn't need to set things up like described here, it was just a matter of running the wizzard in kmail to setup bogofilter and that was that.

            Now I have to manually wade through all the spam and tell bogofilter to move it, yuck.

            I found a thread that told me to check 'Accounts / General / Filter messages if they are greater than' but that does not seem to affect bogofiltering here.

            This is from the logs:
            [11:03:49] Evaluating filter rules: (match any of the following)
            "<size>" <less-or-equal> "256000"
            [11:03:49] 1 = "<size>" <less-or-equal> "256000" ( 2028 )
            [11:03:49] Filter rules have matched.
            [11:03:49] Applying filter action: Pipe Through "bogofilter -p -e -u"
            [11:03:49] Evaluating filter rules: (match any of the following)
            "X-Bogosity" <regexp> "(yes)|(spam\b)"
            [11:03:49] 0 = "X-Bogosity" <regexp> "(yes)|(spam\b)" (Ham, tests=bogofilter, spamicity=0.000000, version=1.1.5)

            Any insights greatly appreciated.

            EDIT it's starting to behave

            Greets from Groningen Netherlands.
            Jean.
            Greetings from Groningen Netherlands

            Comment

            Working...
            X