This patchset moves the check operation to the mx_ops structure. The first patch adds a new function imap_check_mailbox_reopen, so that all maiboxes have the same prototype for their check operation. The second patch removes some dead code in mx_check_mailbox, it makes factorization simpler. The third patch adds the check operations to struct mx_ops and changes mailboxes to use it.
This serie applies on top of "add open_new_msg operation to struct mx_ops" because they both touch the definition of struct mx_ops, but conflict resolution is trivial if you decide to apply them in reverse order. Thanks, -- Damien
