-mx_t* maildir_reg_mx (void) {
- mx_t* fmt = reg_mx ();
- fmt->type = M_MAILDIR;
- fmt->mx_check_empty = maildir_check_empty;
- fmt->mx_is_magic = maildir_is_magic;
- fmt->mx_open_mailbox = maildir_read_dir;
- fmt->mx_open_new_message = maildir_open_new_message;
- fmt->mx_check_mailbox = maildir_check_mailbox;
- fmt->mx_commit_message = maildir_commit;
- return (fmt);
-}