On Fri, 2009-08-21 at 03:00 -0400, MySQL Student wrote:
> Hi,
> 
> > mimeheader LOC_CTYP_IMG  ((Content-Type =~ /image\/png/) ||
> > (Content-Type =~ /image\/jpg/) || (Content-Type =~ /image\/jpeg/) ||
> 
> I thought this passed through my --lint, but I only caught it the
> second time. I was looking around for the (new) right way to do it,
> and found this in 80_additional.cf:
> 
> mimeheader __ANY_IMAGE_ATTACH   Content-Type =~ /image\/(?:gif|jpeg|png)/
> 
> Now I know. Does the rest look like it will work as expected?

Spammers often change the Content-Type to image/jpg, which most MUA's
will render fine even though it is wrong.

I have this in my local rules:
mimeheader __ANY_IMAGE_ATTACH    Content-Type =~ /image\/(?:gif|jpe?g|
png)/

mimeheader MIME_IMAGE_JPG       Content-Type =~ /image\/jpg/
describe MIME_IMAGE_JPG         contains wrong MIME type image\/jpg
score MIME_IMAGE_JPG            1.0

662 hits on MIME_IMAGE_JPG this week, and no complaints about the flag
images.



-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to