This commit allows self-signed certificates to be used in upstream IMAP connections.
Updates the IMAP processing to use a more mature library. This allows for more robust IMAP support.
Additionally, this adds support for reporting emails as attachments.
Initial support of managing reporting through IMAP.
Co-Authored-By: Jordan Wright <firstname.lastname@example.org>