Hey,

Trojitá uses QMimeDatabase to retrieve the MIME type of an attachment
(see https://github.com/jktjkt/trojita/blob/master/src/Composer/ComposerAttachments.cpp#L189).
QMimeDatabase uses the freedesktop.org shared-mime-info database on linux
systems or a database distributed with Qt on other systems (see
https://doc.qt.io/qt-5/qmimedatabase.html#details for details).
Depending on the OS you are using, I would check the shared-mime-info package
or the Qt installation.

Grettings,
paalsteek

On Montag, 30. Mai 2022 16:20:44 CEST, Andy Balholm wrote:
When I send a PDF file as an attachment in Trojitá,
the Content-Type header is set as "application/x-wine-extension-pdf".
(The correct MIME type is "application/pdf".)
I assume Trojitá is getting this from some external database of MIME
types, but I don't know where to look. Where does it get its MIME type information?

Andy





Reply via email to