procmail
[Top] [All Lists]

Re: HTML Mail

2003-10-21 11:42:19
At 11:36 2003-10-21 -0500, Chris Barnes wrote:
Richard Ibbotson <richard(_at_)sheflug(_dot_)co(_dot_)uk> wrote:
> I'd like to use Procmail to delete HTML mail to /dev/null on my own
> workstation.  I think that means to put something in /etc/procmail.
> Can anyone describe a procmail recipe that can do this for me ?

I think you ought to reconsider this.  If I did it, I would loose all
email messages from my daughters, my mother, and about 1/2 of my non-IT
industry friends.

Sound like just the fix for a corporate mail server ('cept that many corporate mail clients send in HTML or some hair-brained proprietary format by default).

It's trivial to invoke a scrubber from procmail. Search for "stripmime" on the web and in the list archives (which are linked from the procmail website). Modify the perl script as necessary, and you're in business.

I use the characteristic of an HTML message without a text/plain multipart as a strong indicator of spam - legit mail client software should be sending a plaintext copy of a message along with the HTML one -- if not, you're probably looking at spam, or an HTML-only mailing list messages (which some lists are guilty of, but in my case, I have an elevated allowance for recognized discussion lists).

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>