Add IMAP archiving capability

Hello,

This is the first time I contribute to a project.
For work related reasons I need to archive email (like in Thunderbird) and download a bunch of email attachments.

I used to manage my script with the imap standard library but this was painfull.

I later found out about Mail and started to monkey patch but realized I could contribute by forking.

Thanks for your input.