From 16a03de6541357529fd2394c6b88b4de6a2dfad0 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 25 Nov 2001 17:41:57 +0000 Subject: [w3m-dev 02547] "message/*" as a kind of text type From: Kiyokazu SUTO --- ChangeLog | 5 +++++ file.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 02204ec..d05a998 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-11-26 Kiyokazu SUTO + + * [w3m-dev 02547] "message/*" as a kind of text type + * file.c (is_text_type): add message/* + 2001-11-25 Kiyokazu SUTO * [w3m-dev 02535] Name conflicts in configure 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 #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 -- cgit v1.2.3