Fix batch move/delete for IMAP messages