Find the answer to your Linux question:
Results 1 to 6 of 6
Hello, I've been searching for a way to filter Kmail messages on the body containing html. Does anyone know how to setup a filter that will recognize html in the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27

    Kmail and html filters


    Hello,

    I've been searching for a way to filter Kmail messages on the body containing html. Does anyone know how to setup a filter that will recognize html in the body of a message?

    I've noticed that most spam I receive has html in the body and as I only do text mail. I would like to setup a filter in Kmail that will recognize html and send it to the trash.

    Any help will be greatly appreciated.
    Thank you

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    settings menu -> configure filters

    choose "new" (its a small button, bottom left).

    then match on "Body" - Contains - <html> (type in <html> exactly like that).

    Then set whatever action you want to take for matching emails below.

    Jason

  3. #3
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    Thank you,

    I've got several filters setup but I didn't even think of just putting the text "<html> in the filter, doh . I guess I was looking for an option specifically for html in the body.

    Thanks again

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    no problemo, welcome to the site

  6. #5
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    Thanks

  7. #6
    Just Joined!
    Join Date
    Sep 2003
    Location
    Laurel, MD
    Posts
    27
    Quote Originally Posted by Jaguar
    settings menu -> configure filters

    choose "new" (its a small button, bottom left).

    then match on "Body" - Contains - <html> (type in <html> exactly like that).

    Then set whatever action you want to take for matching emails below.

    Jason
    Tried this, it isn't working. I tried matching <html>, I tried escaping the char.s in case that made a difference \<html\> , /<html/>, nope. I tried putting "<html>" in quotes, no luck. I tried just html and that matched every message even a test message where the body only contained the word test. I've never had a problem on filter match to From, or Subject but the body filters I can't seem to make work. :banghead:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •