]> granicus.if.org Git - neomutt/commitdiff
probe maildir
authorRichard Russon <rich@flatcap.org>
Sun, 26 Aug 2018 16:05:05 +0000 (17:05 +0100)
committerRichard Russon <rich@flatcap.org>
Sun, 26 Aug 2018 21:11:03 +0000 (22:11 +0100)
browser.c
maildir/maildir.h
maildir/mh.c

index ecf4405623747411cdf8fd2bd9f08db546ceea85..2a877108f0a57908a42b5516e29d261bc87541cc 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -1009,7 +1009,7 @@ static int examine_mailboxes(struct Menu *menu, struct BrowserState *state)
       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];
index 065abaa25a4f856941e339bd157d7bfd5afefb80..1b807a9c108a9f711de773bafd0ab3d8f7cb3400 100644 (file)
@@ -66,8 +66,6 @@ bool           maildir_update_flags(struct Context *ctx, struct Header *o, struc
 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);
 
index 3e8597cf0356b55780e2bfa85c98dfa814c44b39..8c68fc8a5369491bce59d5795fb7ac5af370ced6 100644 (file)
@@ -2888,16 +2888,6 @@ int maildir_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
  */
@@ -2941,16 +2931,6 @@ int mh_path_probe(const char *path, const struct stat *st)
   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
  */