Fix IMAP support for folder events