You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by Sidney Markowitz <si...@sidney.com> on 2004/02/11 08:43:20 UTC
Implementation question
I'm implementing the FORGED_WHITELIST rule I recently posted as an
enhancement request and I have a question about it.
I'm modifying a boolean function in the eval test to return one of three
values, for found in whitelist, nothing found, or forgery found.
To do both the new rule and USER_IN_WHITELIST with only one call to the
function, the result has to be cached somewhere.
My question is, where do you typically cache a value like this which is
used by more than one rule?
-- sidney
Re: Implementation question
Posted by Sidney Markowitz <si...@sidney.com>.
I think I answered my own question. The check_for_forged_received_trail
and check_for_forged_received_helo functions do the same kind of thing.
Just cache the result in a hash element on self->{some_name_I_make_up}.
-- sidney