Set mail_ctx=NULL always after doing something for the last mail, even if we didn't rewrite its headers. Otherwise internal state breaks and we'll crash.
Set mail_ctx=NULL always after doing something for the last mail, even if we
didn't rewrite its headers. Otherwise internal state breaks and we'll crash.

LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot