[exim-dev] [Bug 1825] New: $regex1

Top Page
Delete this message
Reply to this message
Author: admin
Date:  
To: exim-dev
Subject: [exim-dev] [Bug 1825] New: $regex1
https://bugs.exim.org/show_bug.cgi?id=1825

            Bug ID: 1825
           Summary: $regex1
           Product: Exim
           Version: 4.87
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: ACLs
          Assignee: jgh146exb@???
          Reporter: marc@???
                CC: exim-dev@???


Tried new feature $regex1 and it always returns empty string. Here's some code:

deny    condition = ${if or {\
                     {exists{$acl_m_domain_directory/gamble}}\
                     {exists{$acl_m_user_directory/gamble}}\
                     }{yes}{no}}
    !condition = ${if def:acl_c_white}
        mime_regex =
{sg{${sg{${sg{${readfile{/etc/exim/control/gamblefilter.txt}{:}}}{\\:+}{:}}}{#.*?\\:}{}}}{\\:\$}{}}
    message = REJECTED - REGEX-M - Message contains blacklisted gambling string
($regex_match_string ** $regex1) - $acl_c_information


Result:

REJECTED - REGEX-M - Message contains blacklisted porn string ((?i)\bmilf\b **
)

Notice after ** is empty.

Maybe I'm doing something wrong?

--
You are receiving this mail because:
You are on the CC list for the bug.