To add IMAP email account to Gmail, use the smart CubexSoft's IMAP to Gmail tool that is amazing solution to directly add IMAP server emails to Gmail with batch mode and other smart functions. It enables to add selective IMAP emails into Gmail with multiple filters. Using it you can also save attachments and mail address on your local system without any issue. Download free demo and check out its efficiency with 25 emails migration from IMAP account to Gmail. https://www.cubexsoft.com/imap-backup/