I've been using OfflineIMAP with Gmail and it works pretty well. Now I want to move to another email service and remove all my emails from Gmail. How can use OfflineIMAP to transfer all my emails to the new service? I tried simply changing the Repository Remote part i.e. type (from Gmail to IMAP), remotehost, remoteuser and remotepass, to point to the new server. But I started getting UID errors and also I wasn't able to change the folder names so that they didn't have the Gmail prefix [Gmail].