, 2002-02-04
Now there are options for screening potentially dangerous messages, or even eliminating HTML email from your life.
Expand all |
Post comment
Three things to make HTML email bearable
2002-02-04
TL (2 replies)
TL (2 replies)
Don't use Outlook
2002-02-04
Anonymous (2 replies)
Anonymous (2 replies)
Don't use Outlook
2002-02-06
Anonymous (2 replies)
Anonymous (2 replies)

The way I've soved the HTML email problem using Procmail. If you're fortunate enough to have Procmail on your mail host, you can throw these two recipies into your rc files.
Both of these recipes are three lines each, plus a one line comment on the top. Please adjust line wrapping as necessary.
# Pipe header and body to a 'f'ilter and 'w'ait to make sure it finishes.
:0fw
* ^Content-Type:.*(multipart/|text/html)
| perl -wpe 's;^(Content-type:\s*text)/html;$1/dan-suppressed-the-html;i
'
# pipe "B"ody to a 'f'ilter and 'w'ait to make sure it finishes
:0Bfw
* ^Content-Disposition:.*inline;
| perl -wpe 's;^Content-Disposition:\s*inline;Content-Disposition: attachment;i'
The first of these ditties change content types from text/html to text/dan-suppressed-the-html. The second modifies dispositions from "inline" to "attachment."
These tweaks keep all HTML emails from being viewed as HTML in Netscape Messenger 4.7, and perhaps other mail user agents.
Enjoy,
--Dan
The Analysis and Solutions Company
[ reply ]
Link to this comment: http://www.securityfocus.com/comments/columns/58/10473#10473