procmail
[Top] [All Lists]

Re: How to bounce HTML-only messages

2004-12-19 09:09:00
On Sun, 19 Dec 2004, 12:16 GMT+01 Tristan Miller wrote:

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.


 my_CLASS
 :0
  * $ ^content-type:[$WS]+\/text/html([;$WS]+|$)
  # $WS is whitespace, as known from this list
  { my_CLASS = 'Html_only' }

 :0 D
  * my_CLASS ?? ^^Html_only^^
  {
     # Do something at your end, but please NEVER bounce back
     # That is as evil as sending HTML-only or viruses !!!
     # Imagine when the other side also bounces back, using
     # HTML-only
  }

rob.


____________________________________________________________
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>