[trojita] MIME type for PDF files

2022-05-30 Thread Andy Balholm
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

Re: [trojita] MIME type for PDF files

2022-05-30 Thread paalsteek
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

Re: [trojita] MIME type for PDF files

2022-05-30 Thread Andy Balholm
Thanks. That put me on the right track, and I found it in ~/.local/shsare/mime Andy On Monday, May 30, 2022 8:12:48 AM PDT, paalsteek wrote: Hey, Trojitá uses QMimeDatabase to retrieve the MIME type of an attachment (see https://github.com/jktjkt/trojita/blob/master/src/Composer/ComposerAttac