Re: [Exim] needed: beagle/bagle pattern

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Fred Viles
Dátum:  
Címzett: Exim User's Mailing List
Tárgy: Re: [Exim] needed: beagle/bagle pattern
On 20 Jan 2004 at 20:24, Wakko Warner wrote about
    "Re: [Exim] needed: beagle/bagle pat":


|...
| > check_exe:
| >   driver    = redirect
| >   no_verify
| >   data        = ${if match { $message_body } \
| >         { "TV[nopqr][A-Z]...[AB]..A.A....*AAAA...*AAAA" } \

|
| Try:
| {TV[nopqr][A-Z]...[AB]..A.A....*AAAA...*AAAA}

|
| there. You're actually searching for the string:
| -- "TV[nopqr][A-Z]...[AB]..A.A....*AAAA...*AAAA" --
| (I put the double dash to show the space at the end).


Huh. Well, you must be right because it works. Thanks.

But I don't understand why, from reading the spec. Section 6.12 says
pretty clearly that leading and trailing whitespace are stripped from
string values unless the string is enclosed in quotes. And while
quotes weren't needed around the pattern string in this case, it's
not clear to me why they should cause a problem.

Experimenting a bit more, it appears to work with the quotes if there
is no whitespace between the curlys and the quotes (front *or* back),
and it works without the quotes even if there *is* leading and
trailing whitespace. Apparently the curlys interact with string
parsing in a non-documented way? Or did I miss something in the
spec?

- Fred