If set, use 64 bit PGP key IDs. Unset uses the normal 32 bit Key IDs.
+
<sect2>pgp_receive_version<label id="pgp_receive_version">
<p>
Type: string<newline>
this to pgp2 (PGP 2.*), pgp5 (PGP 5.*), or gpg (GNU privacy guard) if
you want to use a different PGP version for sending operations.
+<sect2>pgp_show_unusable<label id="pgp_show_unusable">
+<p>
+Type: boolean<newline>
+Default: set
+
+If set, mutt will display non-usable keys on the PGP key selection
+menu. This includes keys which have been revoked, have expired, or
+have been marked as ``disabled'' by the user.
+
<sect2>pgp_sign_as<label id="pgp_sign_as">
<p>
Type: string<newline>
break;
}
case 2: /* trust info */
- /*
- * XXX - is this the owner-trust field?
- *
- * Actually, we'd need the trust gpg has into the
- * association between a user ID and a key.
- *
- * - tlr
- */
{
switch (*p)
{ /* look only at the first letter */
case 'e':
k->flags |= KEYFLAG_EXPIRED;
break;
+ case 'r':
+ k->flags |= KEYFLAG_REVOKED;
+ break;
+
+ /* produce "undefined trust" as long as gnupg doesn't
+ * have a proper trust model.
+ */
+#if 0
case 'n':
trust = 1;
break;
case 'u':
trust = 3;
break;
- case 'r':
- k->flags |= KEYFLAG_REVOKED;
- break;
+#endif
}
break;
}
{ "pgp_long_ids", DT_BOOL, R_NONE, OPTPGPLONGIDS, 0 },
{ "pgp_replyencrypt", DT_BOOL, R_NONE, OPTPGPREPLYENCRYPT, 0 },
{ "pgp_replysign", DT_BOOL, R_NONE, OPTPGPREPLYSIGN, 0 },
+ { "pgp_show_unusable", DT_BOOL, R_NONE, OPTPGPSHOWUNUSABLE, 1 },
{ "pgp_sign_as", DT_STR, R_NONE, UL &PgpSignAs, 0 },
{ "pgp_sign_micalg", DT_STR, R_NONE, UL &PgpSignMicalg, UL "pgp-md5" },
{ "pgp_strict_enc", DT_BOOL, R_NONE, OPTPGPSTRICTENC, 1 },
OPTPGPENCRYPTSELF,
OPTPGPSTRICTENC,
OPTFORWDECRYPT,
+ OPTPGPSHOWUNUSABLE,
#endif
/* pseudo options */
for (i = 0, kp = keys; kp; kp = kp->next)
{
+ if (!option (OPTPGPSHOWUNUSABLE) && (kp->flags & KEYFLAG_CANTUSE))
+ continue;
+
for (a = kp->address; a; i++, a = a->next)
;
}
for (i = 0, kp = keys; kp; kp = kp->next)
{
+ if (!option (OPTPGPSHOWUNUSABLE) && (kp->flags & KEYFLAG_CANTUSE))
+ continue;
+
for (a = kp->address; a; i++, a = a->next)
KeyTable[i] = a;
}