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

_________________________________________________
tmda-workers mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to