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: [email protected]
Reporter: [email protected]
CC: [email protected]
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.
--
## List details at https://lists.exim.org/mailman/listinfo/exim-dev Exim
details at http://www.exim.org/ ##