]> granicus.if.org Git - mutt/commitdiff
Check for .mew-cache in MH folders.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 20 Aug 2001 12:11:28 +0000 (12:11 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 20 Aug 2001 12:11:28 +0000 (12:11 +0000)
mx.c

diff --git a/mx.c b/mx.c
index 69eaeabd1becd0791565d289355639bd04ce111e..22115c5a063db6b5ff1ff67be81147145eb6f929 100644 (file)
--- a/mx.c
+++ b/mx.c
@@ -396,6 +396,10 @@ int mx_get_magic (const char *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);
+
     /* 
      * ok, this isn't an mh folder, but mh mode can be used to read
      * Usenet news from the spool. ;-)