When exporting from gmail, labels have to be handled. This is already implemented by using imap folders. We have to figure out a way to handle multiple labels on mails, possibly avoiding re-downloading the same messages multiple times.