/* read a maildir style mailbox */ int maildir_read_dir (CONTEXT * ctx) { /* maildir looks sort of like MH, except that there are two subdirectories * of the main folder path from which to read messages */ if (mh_read_dir (ctx, "new") == -1 || mh_read_dir (ctx, "cur") == -1) return (-1); return 0; }
/** * mh_mbox_open - Implements MxOps::mbox_open() */ static int mh_mbox_open(struct Mailbox *m) { return mh_read_dir(m, NULL); }