I had trouble with IMAP and folders when I looked at something and then delete I use to lose the message of the Fastmail server, so I went to POP.
Sadly I'm not that computer literate so some things are hit and miss, but I still manage to get most of my mail...