Re: GPGME S/MIME expired flag support?
Robert Jäschke via Mutt-dev <[email protected]> Tue, 7 Jul 2026 21:21:37 +0200
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <[email protected]> |
--jAe4L2kcNspRHd7z
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Dear Kevin,
Am 04.07.2026 schrieb Kevin J. McCarthy:
> > if (key->expired)
> > flags |=3D KEYFLAG_EXPIRED;
> >=20
> > to the corresponding S/MIME loop and it works as expected (although the
> > option pgp_show_unusable seems to be ignored but I have to further check
> > that).
>=20
> I'm glad that is working. That's good in that it means the S/MIME GPGME
> backend flags are set. So it's just a matter of hooking them up.
OK. So I can produce a patch for that, however:
> The check for the $pgp_show_unusable is there in crypt_select_key(), so
> I'm not seeing right away why that isn't working for you. You may have
> to add muttdbg() statements and see what the problem is.
I tested all variants that came to my mind and I get this result:
- with check for KEYFLAG_EXPIRED in S/MIME code:
- $pgp_show_unusable =3D no
- S/MIME: no choice
- GPG: no choice
- $pgp_show_unusable =3D yes
- S/MIME: no choice
- GPG: no choice
- without check for KEYFLAG_EXPIRED in S/MIME code:
- $pgp_show_unusable =3D no
- S/MIME: menu shown
- GPG: no choice
- $pgp_show_unusable =3D yes
- S/MIME: menu shown
- GPG: no choice
So it seems that $pgp_show_unusable has neither effect for GPG nor
S/MIME but the check for KEYFLAG_EXPIRED has an effect.
I did not see any messages regarding that in the debug log so I have to
check the source code (or run an actual debugger). For now, that has to
wait a while.
> > %[<s>] date of the key where <s> is an strftime(3) expression
> Yeah, that's not going to be changeable. The format string is shared acr=
oss
> GPGME and PGP classic, and I assure people will notice if you just change
> it. Adding multiple dates also involves mucking in the gnupgparse parser,
> which I'd rather not do for something like this.
Thank you very much for approaching this extension of $pgp_entry_format.
It looks as if it was not too difficult to implement. I'll test it.=20
Best,
Robert
--jAe4L2kcNspRHd7z
Content-Type: application/pgp-signature; name="signature.asc"
-----BEGIN PGP SIGNATURE-----
iQGzBAABCgAdFiEELJ15GEuwMYKw/FK7enZp3UrcWhkFAmpNUcAACgkQenZp3Urc
Whlemgv9EprSL2CveqxUZtLlp99me6PCYPP0bSbC5L+44myIiAs3IFGBTmjoHY7K
16wBeJ27l0761NA2rNPCmJE1qYtYiLLgzwCUTILP2xHToVbb5YKN+QgLVaJa8l09
fxEEr54spKgi03gLMSjH2xv2xOQfvxaJN0dr1ruCdUjp0iUpjYDyAY4Wxx8uKfXR
C34SKTa5URrRzHGCj0W98hd95vyPCCqOT+M/nAc5Y2QHLGNtPcSWnSUPWMbzP0M4
frjao7iTxRhDQPdLcv0QjmOW4/RzcoQVxRJ1tkAKrw4niUyxlVNU7OeqPSgyG9KL
+v2k577ui4iUoL3nYFjdsODccjPIAB0iYJgow1Ttiic0evYCVTrlivSPdorgcjCX
5dE8+ir+oQPM9+b026soB/8EDomqD9F7rtSLEiWkzPbmyNG3gFuRZldQhGUpiswF
V4pjTq5tY+oRvrQPlUcVks0QUCHbQrQ83GJcPynIX+TzuglXvyfcRBoH35tpClPi
L/NCP/Zl
=GtCB
-----END PGP SIGNATURE-----
--jAe4L2kcNspRHd7z--