-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 03/10/12 16:07, [email protected] wrote:

>> In perl style regular expressions, \Q disables pattern
>> meta-characters until \E is reached.
> 
> But Exim uses PCRE. From `man pcrepattern`:
> 
> If  you  want  to remove the special meaning from a sequence of
> charac- ters, you can do so by putting them between \Q and \E. This
> is  differ- ent  from  Perl  in  that  $  and  @ are handled as
> literals in \Q...\E sequences in PCRE, whereas in Perl, $ and @
> cause  variable  interpola- tion. Note the following examples:
> 
> Pattern            PCRE matches   Perl matches
> 
> \Qabc$xyz\E        abc$xyz        abc followed by the contents of
> $xyz

"By perl style regular expressions" I was referring to PCRE. Yes, Perl
does variable interpolation before running the regex, but then Exim
does string expansion before running the regex as well.

I'm not sure what you're getting at. Do you think there was a bug in
the suggestion I made of using:

${if match {$h_X-UoP-Loop:}{^\\Q$sender_address \\E}}

Because in the above, $sender_address is first expanded to the real
email address, and then any pattern meta-chars in that email address
are treated as normal chars...

Looks good to me.

- -- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4
-----BEGIN PGP SIGNATURE-----

iQGGBAEBCgBwBQJQbFpcMBSAAAAAACAAB3ByZWZlcnJlZC1lbWFpbC1lbmNvZGlu
Z0BwZ3AuY29tcGdwbWltZTgUgAAAAAAVABpwa2EtYWRkcmVzc0BnbnVwZy5vcmdt
aWtlLmNhcmR3ZWxsQGdyZXB1bGFyLmNvbQAKCRCdJiMBwdHnBCh2CAC1DI6z2XBb
vYFNpYRWnd5n+ABQm62Nj+dQd4lhSzGlQhG2NO1dQ1KmzO+vq56UpSpd5P0Iza4H
jzof/9cAD5Y0uhAxFeDPJhXquJP6RvZjaHsReMoxfmOvx/E8EQsOMYi/A9nj5Efh
ghNPfc5KHA5P9iNxfddjbv6lpQF8Spzm1kjndBLVYGGz2Kk0tZOgGmOMGiTHVF8R
eXQfC3Nhwxr0rQ6CpAiu0TAMlu/26aKXhDcOgP8TaOnxoFUy2MnS4X1iR30MGV+S
38NybYe2QoqGfwcXWX14TheCuQ9elf/ZslA9KGlnmHf9YREs2SSmMyrtSIPALko+
uIgtRR0ngmqy
=44fn
-----END PGP SIGNATURE-----

-- 
## List details at https://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