summaryrefslogtreecommitdiffstats
path: root/mx.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-11-18 10:42:14 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-11-18 10:42:14 +0000
commit07d90fd243de202c97cd61ce2b74d0f21a3995ef (patch)
tree184477d5b7e5889e17e0f2dcfa8d3fa95d5d7e87 /mx.c
parentde349b69f0be9a5d50297999b25ba7172704e156 (diff)
Detect .mew_cache files in MH folders. Suggested by Kawaguti Ginga
<ginga@amalthea.phys.s.u-tokyo.ac.jp>.
Diffstat (limited to 'mx.c')
-rw-r--r--mx.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mx.c b/mx.c
index 763bf8aa..ee64bc80 100644
--- 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)
{