Skip to content

Commit

Permalink
oxcmail: read /etc/mime.types for obtaining more MIME type-extension …
Browse files Browse the repository at this point in the history
…pairs

For example, png is absent from data/mime_extension.txt.
  • Loading branch information
jengelh committed Aug 1, 2024
1 parent 997186c commit ff19d14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/textmaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ void textmaps_init(const char *datapath)
mlog(LV_INFO, "textmaps: lang_charset: %zu mappings",
g_lang2cset_map.size());
smap_read("mime_extension.txt", datapath, g_ext2mime_map, g_mime2ext_map);
smap_read("/etc/mime.types", datapath, g_mime2ext_map, g_ext2mime_map);
mlog(LV_INFO, "textmaps: mime_extension: %zu exts, %zu mimetypes",
g_ext2mime_map.size(), g_mime2ext_map.size());
folder_namedb_read("folder_names.txt", datapath, folder_name_map);
Expand Down

0 comments on commit ff19d14

Please sign in to comment.