Utility class to download IMAP emails and attachments