When trying to recognize .eml files undefined is returned instead of { "ext": "eml", "mime": "message/rfc822" } which obviously means the format is not recognized. running the same file through the linux file utility returns RFC 822 mail, ASCII text, with CRLF line terminators.
Here is how the file utility recognises the files.
Since there's many more magic file definitions in the Magdir, it might be a good idea to support those and expand the list of supported types to a way bigger set than currently supported.
When trying to recognize .eml files
undefined
is returned instead of{ "ext": "eml", "mime": "message/rfc822" }
which obviously means the format is not recognized. running the same file through the linuxfile
utility returnsRFC 822 mail, ASCII text, with CRLF line terminators
.Here is how the file utility recognises the files.
Since there's many more magic file definitions in the Magdir, it might be a good idea to support those and expand the list of supported types to a way bigger set than currently supported.