procmail
[Top] [All Lists]

[dman(_at_)nomotek(_dot_)com: Re: How to bounce HTML-only messages]

2004-12-19 05:38:12
On Sun, Dec 19, 2004 at 12:16:19PM +0100, Tristan Miller wrote:
Greetings.

I'd like to configure procmail to detect e-mail messages which consist only
of HTML and then autorespond to them with a "Sorry, I don't accept HTML
mail"-type message.  However, I don't want procmail to bounce such
messages if they are multi-part, with a text version of the HTML message.

Can someone suggest an appropriate script?


Well, first of all, a high percentage of HTML-only email is spam, and a
second-highest percentage is list mail; so I would strongly recommend
*not* to autorespond to this type.

However, identifying it is simple:

  :0
  * ^Content-Type:.*text/html
  | do_something


and there are samples of autoresponders in "man procmailrc" for the 
"do_something"
part.


If, however, you are talking about testing the putative multipart messages
and finding ones that in truth are only HTML, that is highly useful to
find spam -- I have a recipe for it I use and love -- but, again, I would
not respond to these jokers.  None of your friends or legit correspondents
should be using that trick.

-- 
dman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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