Search: Home Bugtraq Vulnerabilities Mailing Lists Jobs Tools Vista
Solving the Problem of HTML Mail
Shane Coursen, 2002-02-04

Now there are options for screening potentially dangerous messages, or even eliminating HTML email from your life.

Comments Mode:
Solving the Problem of HTML Mail 2002-02-04
Roland <r s m i t h AT x s 4 a l l . n l >
Don't use Outlook 2002-02-04
Anonymous (2 replies)
Don't use Outlook 2002-02-06
Anonymous (2 replies)
Don't use Outlook 2002-02-08
Anonymous (2 replies)
Don't use Outlook 2002-02-16
Anonymous
Don't use Outlook 2002-02-16
Anonymous
Don't use Outlook 2002-02-07
trowe
Solving the Problem of HTML Mail 2002-02-04
Tony Turner
Solving the Problem of HTML Mail 2002-02-05
Dr. Gerry Hecht
Solving the Problem of HTML Mail 2002-02-06
Anonymous
users 2002-02-06
Stefan Caunter
HTML mail is for Teletubbies 2002-02-07
lala@po.com
this comment page... 2002-02-08
WetBlanket
Procmail on the Mail Server is a Real Solution 2002-02-12
Analysis and Solutions
Hi Folks:

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
consumers love text/html 2002-02-12
Anonymous
Solving the Problem of HTML Mail 2002-02-13
Anonymous
Solving the Problem of HTML Mail 2002-02-14
Old Fogie (aeaton@fdic.gov)
We nead assambly... Order is dump 2002-02-16
Anonymous
Solving the Problem of HTML Mail 2002-02-19
Daniel Spiljar <dspiljar+www@bofhlet.net>
Solving the Problem of HTML Mail 2007-10-04
Anonymous







 

Privacy Statement
Copyright 2008, SecurityFocus