Fix for GetMessages with IMAP