At the moment, if there's an error when handling an incoming email, objects may be created associated with that email (e.g. RawIncomingEmail objects) which then cause errors when reimporting the email.
I think the handling of incoming email should happen within a transaction that's rolled back in case of exceptions (e.g. by using a transaction.atomic() block)
At the moment, if there's an error when handling an incoming email, objects may be created associated with that email (e.g.
RawIncomingEmail
objects) which then cause errors when reimporting the email.I think the handling of incoming email should happen within a transaction that's rolled back in case of exceptions (e.g. by using a
transaction.atomic()
block)