IMAP: implement _has_mailbox_changed, keep state