On Fri, 25 Mar 2011, Stan Hoeppner wrote:

/Subject:.*won.*\$\d.*/           REJECT Probable phish
/Subject:.*won \$\d.*/            REJECT Probable phish

What the heck am I missing WRT making $ literal?

Likely that it must be quoted/escaped correctly in the shell:

$ cat won_money
/^Subject:.*won \$\d/ REJECT
$ postmap -q 'Subject: you won $10' pcre:won_money
REJECT
$ postmap -q "Subject: you won \$10" pcre:won_money
REJECT
$ postmap -q "Subject: you won $10" pcre:won_money
$

You still don't need wildcards (.*) at the end of the pattern.

-Rob

Reply via email to