Improved ImapFolder's UID MOVE fallback logic