aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-11-25 17:41:57 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-11-25 17:41:57 +0000
commit16a03de6541357529fd2394c6b88b4de6a2dfad0 (patch)
tree4eb89978a1c4c255f879d2957dfab8e7880d6dfb /file.c
parent[w3m-dev 02535] Name conflicts in configure (diff)
downloadw3m-16a03de6541357529fd2394c6b88b4de6a2dfad0.tar.gz
w3m-16a03de6541357529fd2394c6b88b4de6a2dfad0.zip
[w3m-dev 02547] "message/*" as a kind of text type
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to 'file.c')
-rw-r--r--file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/file.c b/file.c
index ea7534d..bd7d406 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.14 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: file.c,v 1.15 2001/11/25 17:41:57 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -208,7 +208,8 @@ static int
is_text_type(char *type)
{
return (type == NULL || type[0] == '\0' ||
- strncasecmp(type, "text/", 5) == 0);
+ strncasecmp(type, "text/", 5) == 0 ||
+ strncasecmp(type, "message/", sizeof("message/") - 1) == 0);
}
static int