"Jesse D. Guardiani" <[EMAIL PROTECTED]> writes:

> Would it be conceivable to set those flags with tmda-pending BEFORE
> handing the message off to sendmail? Or would that cause problems if
> the delivery failed?

Right.  I think it's better to set the flag once the message is truly
delivered instead of before we know for sure.

Something to think about might be a way to support both types of
delivery.  Both the current re-injection for users who deliver using
dot-qmail files, or need env vars set by the MTA for a pipe delivery,
and where TMDA handles the delivery entirely itself.  For users who
just deliver straight to an mbox or Maildir, or don't rely on env
vars in their pipe delivery, this would be much cleaner and faster.

I've thought about trying to completely eliminate re-injection, but I
think this would be too difficult.  I'd have to checkpoint the
environment in a pickle file or something when the message is written
to pending, and then re-animate it when the message is delivered.  I'd
also have to invoke qmail-local directly to handle .qmail files.  The
level of complication here starts to outweigh the potential benefit.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers

Reply via email to