> On Sat, 13 Jun 1998, Steve Lamb wrote:
> > Why not just \$? Since exim uses pcre that is the perl way of denoting a
> > literan $.
> According to the spec, section 9...
>
> An uninterpreted dollar can be included in the string by putting a
> backslash in front of it -- if the string appears in quotes, two
> backslashes are required because the quotes themselves cause
> interpretation of backslashes when the string is read in.
Well, severe frustration set in, and I tried increasing numbers of
backslashes until it worked. The magic number is 6:
if $h_subject matches "\\\\\\$\\\\\\$\\\\\\$"
then
log "match"
endif
=======================================================
Testing Exim filter file xf
Filter: start of processing
Match expanded arguments:
Subject = (fwd) Problem sending this message out
Pattern = \$\$\$
Condition is false: $h_subject matches \\\$\\\$\\\$
At the end of filtering "delivered" is false
Filter: end of processing
=======================================================
Testing Exim filter file xf
Filter: start of processing
Match expanded arguments:
Subject = (fwd) $$$ Problem sending this message out
Pattern = \$\$\$
Condition is true: $h_subject matches \\\$\\\$\\\$
Logwrite "match\n"
At the end of filtering "delivered" is false
Filter: end of processing
=======================================================
--
Steven A. Reisman (sar@???) Duluth/Superior: 715-395-0311
PressEnter! | River Falls: 715-426-2100 Menomonie: 715-232-0430
P.O. Box 312 | Eau Claire: 715-830-1273 LaCrosse: 608-785-1411
421 N 2nd Street | New Richmond: 715-246-7060 Somerset: 715-246-7060
River Falls, WI 54022 | Twin Cities: 612-436-5254 Red Wing: 715-792-5279
--
*** Exim information can be found at
http://www.exim.org/ ***