Re: 8bit mime support? (linked to thunderbird issue)

Andrew Gallagher via Gnupg-devel <[email protected]> Wed, 30 Jul 2025 20:34:22 +0100
Newsgroups gmane.comp.encryption.gpg.devel
Message-ID <[email protected]>
On 30 Jul 2025, at 19:35, JL <[email protected]> wrote:
> 
> here what I get when sending a signed message :
> 
> 
> This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
> --------------O0jQavEJzad0tdgqdlXTuPu2
> Content-Type: multipart/mixed; boundary="------------FWDnkJ83p73oQajQk66iKNQY";
> protected-headers="v1"
> From: XXXXXXX
> Reply-To: XXXXX
> To: YYYYYY
> Message-ID: <[email protected]>
> Subject: ZZZZZZ
> 

Yes, and here’s what I get when printing to PDF:

%PDF-1.3
%���������
3 0 obj
<< /Filter /FlateDecode /Length 364 >>
stream
&؀���k_L1lc�`�V�����.)���͋�Ŷ��HZ�}��!�5Y�CZޕ"��1�m�F�gv:��B�G�Y��
�+<���+$|�*r)+?fE���\{��D{S�                                   �Cԗ"�5
                             ]O���H˘�������`�[
                                              �����;��fs��j�@��p=�_�6�@B��sR���2fnM���M����3g:k��&��ه�"��Y�B{ڃ/5U��u��2Q�X�ș��b���(M�UoN�����f򑣁7��_�%�?�O�`p�!Ӌ�dc�D�
r���¢���1�a��&�g���
endstream
endobj
1 0 obj


What’s the problem? Emails and PDFs may *contain* plaintext, but they aren’t raw plaintext, and never have been. The fact that one particular encoding of emails happens to look very similar to plaintext IFF you are using a language that only requires US-ASCII characters is a historical curiosity. Email encodings are completely transparent to the end user if you use an actual email program and not a text editor.

My honest and heartfelt advice is to please stop worrying about it, it’s been a solved problem for several decades now. If you have limited disk space, base64 compresses really efficiently. Please don’t read your emails in vim, you’ll only generate excess cortisol and shorten your lifespan.

A

_______________________________________________
Gnupg-devel mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEKR55odxVrielLu+DXB7EBNWQZikFAmiKc78ACgkQXB7EBNWQ
ZikfYQ/9HhmFkYspvo6wb0vrxMDZvhBj355nZGFQ1DyJ0MjuU2pNIX87YFAvl1gJ
9oTEFCzwvxEEsnwwgfEGmraeA786fepVZap1Hl0l2a7kNgtPgHEDmpyxzjh84ly1
QN0u+zy/lOWg6sO5m/GewwIll56DtNq0r5KO09XRWWnGOAZfcNiNCI/+JOu6BViy
cPREw4yCpxRRheq4uFMhP/NxOqrPIk9hXFfWgQnu0GW59nO+fwE/Evor4FT881Rk
gEEpOQfTM2tpo41SgDCo3WX0l+pZXDAJMkpsHkc6xIMrxXvhmOZbIxfSd/CAE3N0
2waUfxYkWy67L7EEO56mhdBqQN+Jxxe1u1be3pxpU9e1h0CkUJbQZ9XnrSSsJs2B
nsHVGeVcl/DFCN1vKpkl7rP4zR6iS+uTA91Ym7Gs98r5X+XG25YRehWIQXNFmwaK
B4Wa+Noo3Jua1sm/ws1Zndn0AsJc4LGzvrLbSeveqxfelNzkj9mYSbusS0MbDFkh
DD1l7GRHhQqk/sAdJL7UgaZV90edrG3juJ00QE9B0AweL0Po+KhV3zqcwt35/T7F
/gprUnZFkXbtbNNDsUqTgzhJtrr4tqojuX7ykZdLZzeDAGnH0VsyjAG9QlkCkgqK
bMW60k/4nHXKokDv9aJHUQOJAwBjgdb51uiI1dylQU5dRZGZ2mo=
=04AQ
-----END PGP SIGNATURE-----