Nathan,

>  Thanks for the reply patrick - but I had looked at that...  when i
>  un-escape the @ non of them work..
>  I read that the @ is a perl variable type, so it needs escaperd for
>  the perl side, even if its not in the regex.

Yes, '@' needs to be escaped in regexps (and in double-quote -delimited
strings), unless you use a single quote as a regexp delimiter.


>$sa_kill_level_deflt = {
>     "da...@domain.co.uk"=>"4.2",
>     "fr...@help.co.uk"=>"3.0",
>     "."=>"11.0" # default "catchall" score
>}; # add 'spam detected' headers at that level
>
> [...]
>So - a few hours on google, and I found its perl!  regular 
>expressions, even learned that the + is better than the * in this 
>case..  and I came up with this...
>     "....@domain1.com"=>"7.0",
>     "....@domain2.com"=>"3.0",
>
>But neither have worked at all...

You have to make up your mind first whether you want to continue
using a hash lookup table, or switch to a regexp-type lookup table.
Either can deal with individual users or whole domains, but the
syntax is different. See README.lookups.

In your case, just keep using a hash-type lookup table, and
add entries like:
  'domain1.com' => '7.0',
or if you also want to cover subdomains, start with a dot:
  '.domain1.com' => '7.0',

Mark

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 
 AMaViS-HowTos:http://www.amavis.org/howto/ 

Reply via email to