summaryrefslogtreecommitdiffstats
path: root/mx.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-12-04 15:42:07 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-12-04 15:42:07 +0000
commita7334f82c2144d8168fec90af849efcbb68987b4 (patch)
treecf010343fc68e13c8fab98a3570a62909987fb1f /mx.c
parentbf5a271200174642196d0870435bf1b3b02bee03 (diff)
Check for the presence of .overview files when testing whether
some directory is an MH folder. This way, you can at least read Usenet news from the spool using Mutt. ;-)
Diffstat (limited to 'mx.c')
-rw-r--r--mx.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mx.c b/mx.c
index ee64bc80..de43d7d1 100644
--- 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)
{