You can easily convert IMAP file to PST through a Reliable and Safe tool like IMAP to IMAP Converter. It convert IMAP file with attachments to PST quickly and safely. It also contains IMAP emails to Multiple File formats such as PDF, DOCX, MBOX, EMLX, JSON, etc. It convert IMAP data to office 365, Gmail, Yahoo, Thunderbird, etc. It comes with a trial version that converts 50 mails for free.