OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: regular expression with postfix

From: Victor Duchovni (Victor.DuchovniMorganStanley.com)
Date: Mon Oct 02 2006 - 14:22:48 CDT


On Mon, Oct 02, 2006 at 07:12:14PM +0000, Tom Lee wrote:

> here is what I used in header_checks:
> /^(content-(type|disposition):.*;[[:space:]]*(file)?name[[:space:]]*=[[:space:]]*")([=\?]*([^."]*)\?=)(".*)/
> REPLACE ${1}changed_filename${3}
>
> it doesn't work.
> not sure if I missed something here?

Yes, the [^."]* won't match the "." in "foo.jpg". Also approach is
terrible, update your mail client software to something written this
century.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomopostfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.