On 04/05/2011 10:39 AM, Jeremy wrote:
Of course you can!
Something along the lines of "if match $h_subject /w{25}".

You'll need to look up the exact syntax; sorry.

I tried in acl_check_data:


deny    condition = ${if match{$h_subject:}{\w{25}}
        message = irritating

misses other non white characters


deny    condition = ${if match{$h_subject:}{\S{25}}
        message = irritating


This should work - but isn't? I tested it with PCRE via:

# echo "teststring25charlong" |grep --color -P "\S{25}" grep- -P


Note that it should be \w not /w and \S is anything non white-space.

Am I missing something?






--
--------------------------------------------------------------------------------
Karl Schmidt                                  EMail [email protected]
Transtronics, Inc.                              WEB http://xtronics.com
3209 West 9th Street                             Ph (785) 841-3089
Lawrence, KS 66049                              FAX (785) 841-0434

The lottery: a tax on people that don't understand math.

--------------------------------------------------------------------------------

--
## List details at http://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to