]> granicus.if.org Git - mutt/commitdiff
Check for the presence of .overview files when testing whether
authorThomas Roessler <roessler@does-not-exist.org>
Sat, 4 Dec 1999 15:42:07 +0000 (15:42 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sat, 4 Dec 1999 15:42:07 +0000 (15:42 +0000)
some directory is an MH folder.  This way, you can at least read
Usenet news from the spool using Mutt. ;-)

mx.c

diff --git a/mx.c b/mx.c
index ee64bc8062a95372cf0b31f735fe13796ebdc66c..de43d7d12a2defc30926596a8ac1d61fd005f2e0 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -375,6 +375,16 @@ int mx_get_magic (const char *path)
     snprintf (tmp, sizeof (tmp), "%s/.mew_cache", path);
     if (access (tmp, F_OK) == 0)
       return (M_MH);
+
+    /* 
+     * ok, this isn't an mh folder, but mh mode can be used to read
+     * Usenet news from the spool. ;-) 
+     */
+
+    snprintf (tmp, sizeof (tmp), "%s/.overview", path);
+    if (access (tmp, F_OK) == 0)
+      return (M_MH);
+
   }
   else if (st.st_size == 0)
   {