Re: remove from pending process
[email protected] (Jason R. Mastaler)
| Newsgroups | gmane.mail.spam.tmda.user |
|---|---|
| Message-ID | <[email protected]> |
"Thiago Lima" <[email protected]> writes: > TMDA does not delete the pending message from queue when the message is > released. It deleted the message when it passes thru tmda-inject and has > those headers. > > X-TMDA-Confirm-Done: 1173637813.10903.391df5 > X-TMDA-Released: Sun, 11 Mar 2007 14:30:28 -0400 > > If it has those headers tmda deletes it from pending directory. > > My problem is that when the message is released it is passed to postfix #1, > this postfix does not have tmda installed and because of that is does not > delete the messages from pending. > > To correct this behavior to my needs I changed Pending.py to delete the > message when it is released. Now everything is working fine. I'm glad you were able to modify TMDA to suit your needs; one of the benefits of OSS. But know that there was a specific reason why I implemented the release/delete mechanism this way, even though it's more complex. The reason is because in the event of multiple errors in the chain it's possible to lose mail the way you're doing it, and the way TMDA does it by default prevents this. It's very complicated; so much so that it would honestly take me a while to figure out exactly why this is myself, but I remember this discussion from early on that resulted in the current method.