Imap emails cannot be archived directly to local space. You will need some good application for the same. I use mail backup X. This tool supports Imap Clients of almost every mail provider. The tool offers easy archival to local drives. Take this tool for a free trial for easy Imap Archive.