if ((!S_ISREG(s.st_mode)) && (!S_ISDIR(s.st_mode)) && (!S_ISLNK(s.st_mode)))
continue;
- if (mx_is_maildir(np->b->path))
+ if (maildir_path_probe(np->b->path, NULL) == MUTT_MAILDIR)
{
struct stat st2;
char md[PATH_MAX];
bool mh_mailbox(struct Mailbox *mailbox, bool check_stats);
int mh_check_empty(const char *path);
-bool mx_is_maildir(const char *path);
-bool mx_is_mh(const char *path);
int maildir_path_probe(const char *path, const struct stat *st);
int mh_path_probe(const char *path, const struct stat *st);
return MUTT_UNKNOWN;
}
-/**
- * mx_is_maildir - Is this a Maildir mailbox?
- * @param path Path to test
- * @retval true If it is
- */
-bool mx_is_maildir(const char *path)
-{
- return (maildir_path_probe(path, NULL) == MUTT_MAILDIR);
-}
-
/**
* mh_path_probe - Is this an mh mailbox? - Implements MxOps::path_probe
*/
return MUTT_UNKNOWN;
}
-/**
- * mx_is_mh - Is this an mh mailbox?
- * @param path Path to test
- * @retval true If it is
- */
-bool mx_is_mh(const char *path)
-{
- return (mh_path_probe(path, NULL) == MUTT_MH);
-}
-
/**
* maildir_path_canon - Canonicalise a mailbox path - Implements MxOps::path_canon
*/