diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-07-31 20:38:01 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-07-31 20:38:01 -0600 |
commit | 37652c6ff8acf7acb2196371a2c049647fc4b6c5 (patch) | |
tree | 735d237431f9ad176e24633ca127e3fc20ba63e3 /pith/mimetype.h | |
parent | 72f1f0e3de5c91874572cf530bf5f2d35ba2ba5f (diff) | |
download | alpine-37652c6ff8acf7acb2196371a2c049647fc4b6c5.tar.xz |
* When Alpine opens an attachment, it sometimes changes the extension
of the file that is being opened and replaces it by another for the
same mime type. If Alpine finds that the extension of the file
corresponds with the mime type, according to the mime-types file,
then it will keep it, and no substitution will be made.
Diffstat (limited to 'pith/mimetype.h')
-rw-r--r-- | pith/mimetype.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pith/mimetype.h b/pith/mimetype.h index 62f2044c..0f06b4b0 100644 --- a/pith/mimetype.h +++ b/pith/mimetype.h @@ -42,6 +42,7 @@ typedef int (* MT_OPERATORPROC)(MT_MAP_T *, FILE *); /* exported protoypes */ int set_mime_type_by_extension(BODY *, char *); int set_mime_extension_by_type(char *, char *); +int check_mime_type_by_extension(char *, char *); int mt_srch_by_ext(MT_MAP_T *, FILE *); int mt_get_file_ext(char *, char **); int mt_srch_mime_type(MT_OPERATORPROC, MT_MAP_T *); |