procmail
[Top] [All Lists]

Re: Two simple recipes that don't work

2004-02-29 08:37:37
On Sat, 2004-02-28 at 23:56, Andrew Edelstein wrote:
Ruud H.G. van Tol wrote:

This should eliminate all HTML messages

  :0:
  * ^Content-Type: text/html
  blue-spam
   


Check the headers of any messages that you think should have been
caught. The Content-Type:header will no doubt be different.
 

:0HB:
* ^Content-Type:.*text/html
blue-spam

You need to search the body as well as the header, as most (properly 
formatted) HTML messages will be multipart/alternative with a text/plain 
and a text/html part. The header will have multipart/alternative.


 Two questions.  Why did you put an asterisk before the "text/html"?
Also, I was told there's some kind of procmail bug that doesn't like the
"HB" right after the "0" ( :0HB: )
Instead, I was advised to use an alternate format like this: (I think)
:0 :
* HB ^Content-Type:.*text/html
blue-spam

Is that correct?

<snip>

Thanks,
Robert

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