FS#43319 - [mime-types] [mutt] application/pgp-encrypted breaks sending public keys with extension .asc
Attached to Project:
Arch Linux
Opened by Florian (nblock) - Saturday, 03 January 2015, 20:00 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 18 January 2015, 22:08 GMT
Opened by Florian (nblock) - Saturday, 03 January 2015, 20:00 GMT
Last edited by Gaetan Bisson (vesath) - Sunday, 18 January 2015, 22:08 GMT
|
Details
Description:
When sending a public key with the extension .asc using mutt, the receiver only gets an attachment with the content 'Version: 1' and nothing else. The problem is located in /etc/mime.types (from mime-types) as it contains 'application/pgp-encrypted asc pgp'. Mutt uses this mime-type to override the content of the file the hard way as shown in [1]. Possible solution: * Remove the entry from /etc/mime.types Additional info: * mime-types 9-1 * mutt 1.5.23-1 Steps to reproduce: * Create a public key: gpg --export-options export-minimal -a --export keyid > pubkey.asc * Open mutt * Compose a new e-mail * Attach the created public key file: pubkey.asc * Mutt detects the mime-type as application/pgp-encrypted and replaces the content with 'Version: 1' [1]. [1] http://sourceforge.net/p/mutt/code/ci/default/tree/sendlib.c#l443 |
This task depends upon

Sounds to me like a problem with mutt, not with the mime types.

Yeah, it’s definitely a bug in mutt (which has bitten me in the
past), what the hell is that code even trying to do?

I forwarded this to mutt:
http://dev.mutt.org/trac/ticket/3724

For reference:
https://bugs.gentoo.org/show_bug.cgi?id=534658