Autor: Luca Bertoncello Data: A: Users, Exim Assumpte: [exim] Help with RegExp
Hi list!
In my exim.conf I have these statements:
warn set acl_m_from = ${domain:${sg {$h_from:}
{^\N(.*)?\<(.*)?\>$\N} {\$1}}}
warn set acl_m_froma = ${addresses:${sg {$h_from:}
{^\N(.*)?\<(.*)?\>$\N} {\$1}}}
warn set acl_m_from1 =
${extract{2}{@}{${reduce{${addresses:$h_from:}}{}{$item}}}}
warn set acl_m_fromad = ${addresses:$h_from:}
My goal is to check the sender (FROM-Header) against a list of
addresses.
Unfortunately, if the FROM-Header contains a comma (eg: "Tester, Test
<test.tester@???>") it fails.
acl_m_from is empty and acl_m_froma contains just the first part of the
header (Tester).
I really can't understand this behaviour, since "(.*)" should mean "all
characters"...