From 839a90de363b859cef95275dfb4bebc17010f080 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Thu, 26 Feb 2009 23:49:05 +0000 Subject: [PATCH] * add .vcf to our static file extensions list, so we can surpass xdgmime untill its fixed. --- libcitadel/lib/mime_parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcitadel/lib/mime_parser.c b/libcitadel/lib/mime_parser.c index 6b216ac89..1505a492a 100644 --- a/libcitadel/lib/mime_parser.c +++ b/libcitadel/lib/mime_parser.c @@ -739,6 +739,8 @@ const char* GuessMimeByFilename(const char *what, size_t len) return "image/png"; else if ((len > 3) && !strncasecmp(&what[len - 4], ".ico", 4)) return "image/x-icon"; + else if ((len > 3) && !strncasecmp(&what[len - 4], ".vcf", 4)) + return "text/x-vcard"; else if ((len > 4) && !strncasecmp(&what[len - 5], ".html", 5)) return "text/html"; else if ((len > 3) && !strncasecmp(&what[len - 4], ".htm", 4)) -- 2.30.2