]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/mime_parser.c
* shutdown libcitadel and xdgmime properly
[citadel.git] / libcitadel / lib / mime_parser.c
index 6b216ac89523bc8c93474991ef89602c2d85c2be..026d0555009cd76d66865dd327b484274091f6c5 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "xdgmime/xdgmime.h"
 #include "libcitadel.h"
+#include "libcitadellocal.h"
 
 void extract_key(char *target, char *source, char *key)
 {
@@ -739,6 +740,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))
@@ -889,7 +892,7 @@ const char *GetIconFilename(char *MimeType, size_t len)
        return Icon->FileName;
 }
 
-void ShutDownLibCitadel(void)
+void ShutDownLibCitadelMime(void)
 {
        DeleteHash(&IconHash);
 }