int maildir_parse_dir (struct Mailbox *m, struct Maildir ***last, const char *subdir, int *count, struct Progress *progress);
void maildir_parse_flags (struct Email *e, const char *path);
struct Email * maildir_parse_message (enum MailboxType magic, const char *fname, bool is_old, struct Email *e);
-bool maildir_update_flags (struct Mailbox *m, struct Email *o, struct Email *n);
void maildir_update_tables (struct Context *ctx, int *index_hint);
int md_commit_message (struct Mailbox *m, struct Message *msg, struct Email *e);
int mh_commit_msg (struct Mailbox *m, struct Message *msg, struct Email *e, bool updseq);