On Fri, 2013-05-31 at 11:51 -0400, Andrew Talbot wrote: > header HTML_ATTACH_RULE_2
You will need a mimeheader [1] rule. A header rule matches the mail headers only. > Content-Disposition =~ /^filename\=\"[a-z]{2}\.html\"/i ^^^^^^^^ That is not matching an arbitrary HTML filename. That's exactly 2 characters A-Z, case-insensitive. Also, the Content-Disposition header commonly starts with "inline" or "attached" before the filename. /filename="[^"]+\.html"/i Inside the double-quotes, a filename with an html extension, and a basename of any chars but the double-quote. HTH [1] http://spamassassin.apache.org/full/3.3.x/doc/Mail_SpamAssassin_Plugin_MIMEHeader.html -- char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1: (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}