Re: Extended Expiration?

Mark Horn <[email protected]> Sat, 28 Oct 2006 00:52:21 +0000 (UTC)
Newsgroups gmane.mail.spam.tmda.devel
Message-ID <[email protected]>
On 2006-10-27, Mark Horn <[email protected]> wrote:
> Right...so, I got impatient.  I'm still interested in feedback,
> but I've got it working.  Here's the patch:

Ok.  I've found a problem with my patch.  I'm not exactly sure how
I should exit if there's a configuration error.  This is what I did,
but it doesn't indicate any error anywhere.  

> +	    if type(Defaults.ACTION_EXPIRED_DATED) == str:
> +                do_default_action(Defaults.ACTION_EXPIRED_DATED.lower(),
>                                logmsg, 'bounce_expired_dated.txt')
> +	    elif type(Defaults.ACTION_EXPIRED_DATED) != dict:
> +		sys.stdout.write('tmda-filter: ACTION_EXPIRED_DATED is \
> +			wrong format')
> +		sys.exit(75)

What I'd like to happen is for the delivery to fail and the error
get stuck in the debug log file.  But I'm not sure how to make
that happen.  Is there also a way for the delivery to fail and have
the MTA try again later?

Will mta.defer() do that?

Thanks