<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 30/07/2025 à 15:05, Werner Koch a
      écrit :<br>
    </div>
    <blockquote type="cite" cite="mid:87ms8lsuau.fsf@jacob.g10code.de">
      <pre wrap="" class="moz-quote-pre">On Mon, 28 Jul 2025 22:02, JL said:

</pre>
      <blockquote type="cite">
        <pre wrap="" class="moz-quote-pre">I wanted to open a ticket on GPGME because thunderbird team says they
can't encode email using 8bit mime because of GPGME not handling
</pre>
      </blockquote>
      <pre wrap="" class="moz-quote-pre">TB is again using GPGME?  Did they finally drop their own implementation 
and turned back to Enigmail or made the (gpgme based) optional GnuPG
support finally working?</pre>
    </blockquote>
    <p>of course not ;) they still have their builtin openPGP,</p>
    <p>I've another open ticket on this : <a
        class="moz-txt-link-freetext"
        href="https://bugzilla.mozilla.org/show_bug.cgi?id=1977346">https://bugzilla.mozilla.org/show_bug.cgi?id=1977346</a></p>
    <p>for some reason, it's possible to use gpg, but they take only one
      key (the "sign and certificate type", not the "cipher")</p>
    <p>but for the 8bit mime issue, the code state gpgME..... </p>
    <p><a class="moz-txt-link-freetext" href="https://searchfox.org/comm-central/rev/73897d5732eac86ed38bd521ca6f4610a4411186/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js#1309-1326">https://searchfox.org/comm-central/rev/73897d5732eac86ed38bd521ca6f4610a4411186/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js#1309-1326</a></p>
    <p>yes would be really nice if they could drop their builtin
      openPGP, because it's brocken as hell.... they re-invent the
      wheel, having to implement gpg-agent like to secure the keys
      (right now the default behavior is "protecting with the master
      password" but the master password is never asked to be set, so the
      default behavior is... storing the key unprotected... O_o!</p>
    <p>they are adding some protection, by keeping the key password, but
      again, this is key duplication, and since there is no agent, you
      have to enter the password each time you access a ciphered
      message.</p>
    <blockquote type="cite" cite="mid:87ms8lsuau.fsf@jacob.g10code.de">
      <pre wrap="" class="moz-quote-pre">We encode TB of binary data using gpgme without any problems.  So what
is this about?  Your are using the legacy in-line format for signed PGP
messages?  *Stop doing this!* Use PGP/MIME - this is the only sane way
to sign messages since the mid 90ies.  And you won't run into any
encoding problems because MIME (e.g. its 8 bit support) does this for
you.  MIME is the right layer for encoding stuff.  *PGP cares about
signing and encryption - another layer on top of it.</pre>
    </blockquote>
    <pre>here what I get when sending a signed message :

</pre>
    <blockquote>
      <pre>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: <a class="moz-txt-link-rfc2396E"
href="mailto:8176a3b2-bafa-4339-8776-7768e72a0333@dolce-energy.com"><8176a3b2-bafa-4339-8776-7768e72a0333@dolce-energy.com></a>
Subject: ZZZZZZ

--------------FWDnkJ83p73oQajQk66iKNQY
Content-Type: multipart/mixed; boundary="------------0P7Lzttz257BGejWVIjUJ380"

--------------0P7Lzttz257BGejWVIjUJ380
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: base64

Zg0KDQo=
--------------0P7Lzttz257BGejWVIjUJ380
Content-Type: application/pgp-keys; name="OpenPGP_0xC732933F7F1D313F.asc"
Content-Disposition: attachment; filename="OpenPGP_0xC732933F7F1D313F.asc"
Content-Description: OpenPGP public key
Content-Transfer-Encoding: quoted-printable

-----BEGIN PGP PUBLIC KEY BLOCK-----

<......>
-----END PGP PUBLIC KEY BLOCK-----

--------------0P7Lzttz257BGejWVIjUJ380--

--------------FWDnkJ83p73oQajQk66iKNQY--

--------------O0jQavEJzad0tdgqdlXTuPu2
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

<some ASCII DATA>
-----END PGP SIGNATURE-----

--------------O0jQavEJzad0tdgqdlXTuPu2--</pre>
      <br>
    </blockquote>
    <br>
  </body>
</html>