diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-04 15:42:07 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-04 15:42:07 +0000 |
commit | a7334f82c2144d8168fec90af849efcbb68987b4 (patch) | |
tree | cf010343fc68e13c8fab98a3570a62909987fb1f /mx.c | |
parent | bf5a271200174642196d0870435bf1b3b02bee03 (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) { |