* add .vcf to our static file extensions list, so we can surpass xdgmime untill its...
authorWilfried Göesgens <willi@citadel.org>
Thu, 26 Feb 2009 23:49:05 +0000 (23:49 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 26 Feb 2009 23:49:05 +0000 (23:49 +0000)
libcitadel/lib/mime_parser.c

index 6b216ac89523bc8c93474991ef89602c2d85c2be..1505a492ac1a8000d24df8980d67c206b33d8213 100644 (file)
@@ -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))