Even after the recent change (#207) to offer a future-based API, the mail client internals remained heavily callback-oriented, with some idiosyncratic quirks. This PR changes most of the implementation to be future-based, which allows a lot of code cleanup.
Motivation:
Even after the recent change (#207) to offer a future-based API, the mail client internals remained heavily callback-oriented, with some idiosyncratic quirks. This PR changes most of the implementation to be future-based, which allows a lot of code cleanup.