Re: Extended Expiration?

Mark Horn <[email protected]>
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
On 2006-10-24, David Hoffman <[email protected]> wrote:
>How difficult would it be to add this as an option?
>ACTION_EXPIRE_DATED is already there, so could it be done in a way
>that if ACTION_ANCIENT_DATED and the associated variable for the
>time threshold are not both currently set, then it simply ignores
>the routine and automatically falls back to the standard settings?

I could certainly look into doing it that way.  Is there a benefit
to this way that I can't think of?

The way I was thinking of doing it is something like this in
Defaults.py:

	if not vars().has_key('ACTION_ANCIENT_DATED'):
	    ACTION_ANCIENT_DATED = %(ACTION_EXPIRE_DATED)s

I'd still have to add a decision point in the code and based on the
age of the address, either execute the EXPIRED or ANCIENT action.
Adding the decision point seems like a trivial amount of code.

Is there some advantage to the way you're suggesting that I don't see?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.