Lampa,
> found solution, Eureka :D
> [...]
Good!
> one question:
>
> @spam_quarantine_to_maps = (
> {
> '.domain1.com' => '[email protected]',
> '.domain2.com' => '[email protected]',
> '.domain3.com' => '[email protected]',
> '.domain4.com' => '[email protected]',
> },
> \$spam_quarantine_to,
> );
>
> is same as
>
> @spam_quarantine_to_maps = (
> {
> '.domain1.com' => '[email protected]',
> '.domain2.com' => '[email protected]',
> '.domain3.com' => '[email protected]',
> '.domain4.com' => '[email protected]',
> '.' => \$spam_quarantine_to,
> },
> );
>
> ?
Yes, for all practical purposes it is the same.
Just the mechanism used is different: in the first case
when the hash lookup does not find a match, search continues
with the second lookup entry in the @spam_quarantine_to_maps,
which is a trivial 'constant-type' lookup which always matches
regardless of e-mail address, and returns itself as a value.
See README.lookups.
In the second case, the is only one lookup entry in the
@spam_quarantine_to_maps list, i.e. a hash-type lookup.
But this one has itself a catchall entry '.', which always
matches if everything else fails, so this hash lookup will
always provide some answer - no furher lookup tables would be
consulted, even if present in the @spam_quarantine_to_maps
list.
Mark
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
Please visit http://www.ijs.si/software/amavisd/ regularly
For administrativa requests please send email to rainer at openantivirus dot
org