Firstly, download and install IMAP Mail Backup Tool on your Windows PC. Once it opens, the interface of the tool is displayed in the image below.
You are required to provide host address and then login details of desired account (Gmail, Yahoo, AOL, etc.) Then, click on the Authenticate Me button. This will connect you to the desired IMAP account.
Now, select a particular folder or all folders as per your desire. After that, select a file format (PST, MSG, EML, EMLX, MHTML, HTML, PDF, or MBOX) to save IMAP emails.
In the end, mention an output location where you want to save the emails exported from the desired IMAP account.
To start the backup process, hit the Backup Now button.