Fixes reconnecting to MySQL and some cleanups. Patch by Tomi Hakala.
Fixes reconnecting to MySQL and some cleanups. Patch by Tomi Hakala.

damoxc/dovecot,LTD-Beget/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,damoxc/dovecot