On Tuesday 08 June 2004 22.17, Alexander Nordström wrote: > On Tuesday, 8 Jun 2004 20:27, thujan wrote: > > On Tuesday 08 June 2004 13:44, Alexander Nordström wrote: > > > Now, of course, HTML e-mail is evil and should not be used. > > > > I agree. > > Is there any way to set filter in Kmail to direct all html containing > > messages in to trash without displaying them? > > In my setup I unfortunately see the html source code :( > > You should be able to set up a filter that, if <message> contains > "Content-type: text/html" (without quotation marks), it gets moved to the > wastebin, applied on arrival of new mails. Note that this will also delete > multipart HTML messages with a plain text version, and you may or may not > want to do this. Do this at your own risk, and verify manually that you're > not losing anything of value. Pair that with an additional condition, i.e. all of <message> contains "Content-type: text/html" <message> does not contain "Content-type: text/plain" And an additional rule: all of <message> contains "Content-Type: text/plain;.*<html>.*</html>" <message> does not contain "Content-type: text/html" Works wonderfully for me. Those are my best filters, almost as good as filtering out everything written in Chinese. -- robin ___________________________________________________ . Account management: https://mail.kde.org/mailman/listinfo/kde. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.