Re: DOH! Re: YA multiline header_checks question

From: Tony Earnshaw (no email)
Date: Mon Sep 01 2003 - 03:15:40 EDT


Jim Seymour wrote:

> (Some few minutes later...)
>
> Given an attachment that looks like this:
>
> Content-Disposition: attachment;
> filename=file.foo
> Content-Transfer-Encoding: 7bit
> Content-Type: application/octet-stream;
> x-unix-mode=0644;
> name="file.foo"
>
> and a header_check that looks like this:
>
> /^Content-(Disposition|Type):\s+.+?(file)?name="?.+?\.foo(\.\S{2,4})?(\?=)?"?(;|
> $)/ REJECT ".foo" file attachment types not allowed
>
> I found that adding the "s" flag allowed it through, whereas without
> the "s" flag it was properly rejected. This is what I expected.

Thanks for posting this. A copy went into my Postfix HOWTO folder for
use when I need it :)

--Tonni

-- 
Tony Earnshaw
Looking backwards is always easy with hindsight
http://www.billy.demon.nl
Mail: 







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD