]> granicus.if.org Git - mutt/commitdiff
Detect .mew_cache files in MH folders. Suggested by Kawaguti Ginga
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 18 Nov 1999 10:42:14 +0000 (10:42 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 18 Nov 1999 10:42:14 +0000 (10:42 +0000)
<ginga@amalthea.phys.s.u-tokyo.ac.jp>.

mx.c

diff --git a/mx.c b/mx.c
index 763bf8aa61f05f126179fd622c8cf74aa97eb004..ee64bc8062a95372cf0b31f735fe13796ebdc66c 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -371,6 +371,10 @@ int mx_get_magic (const char *path)
     snprintf (tmp, sizeof (tmp), "%s/.xmhcache", path);
     if (access (tmp, F_OK) == 0)
       return (M_MH);
+    
+    snprintf (tmp, sizeof (tmp), "%s/.mew_cache", path);
+    if (access (tmp, F_OK) == 0)
+      return (M_MH);
   }
   else if (st.st_size == 0)
   {