X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=crypt.cpkg;h=819adae4b8a4a8ff29257200f96cb42132ec7b54;hp=1350166f147b793188f66670f8c3ec6318d538db;hb=91acd32003fb8eb9b3b05b35c1aa32a6c07aad43;hpb=ddc565e15e8d7e2eaeea568dd6602dc0347474c5 diff --git a/crypt.cpkg b/crypt.cpkg index 1350166..819adae 100644 --- a/crypt.cpkg +++ b/crypt.cpkg @@ -98,6 +98,19 @@ ** to find out whether an encrypted message is also signed. ** (Crypto only) */ + bool smime_is_default = 0; + /* + ** .pp + ** The default behaviour of Madmutt is to use PGP on all auto-sign/encryption + ** operations. To override and to use OpenSSL instead this must be \fIset\fP. + ** .pp + ** However, this has no effect while replying, since Madmutt will automatically + ** select the same application that was used to sign/encrypt the original + ** message. + ** .pp + ** (Note that this variable can be overridden by unsetting $$crypt_autosmime.) + ** (S/MIME only) + */ quadopt_t verify_sig = M_YES; /* ** .pp @@ -106,6 +119,28 @@ ** If ``\fIno\fP'', never attempt to verify cryptographic signatures. ** (Crypto only) */ + + string_t pgp_entry_format = m_strdup("%4n %t%f %4l/0x%k %-4a %2c %u"); + /* + ** .pp + ** This variable allows you to customize the PGP key selection menu to + ** your personal taste. This string is similar to ``$$index_format'', but + ** has its own set of \fTprintf(3)\fP-like sequences: + ** .pp + ** .dl + ** .dt %n .dd number + ** .dt %k .dd key id + ** .dt %u .dd user id + ** .dt %a .dd algorithm + ** .dt %l .dd key length + ** .dt %f .dd flags + ** .dt %c .dd capabilities + ** .dt %t .dd trust/validity of the key-uid association + ** .dt %[] .dd date of the key where is an \fTstrftime(3)\fP expression + ** .de + ** .pp + ** (PGP only) + */ }; /* Values used for comparing addresses. */ @@ -2234,8 +2269,8 @@ static void crypt_entry (char *s, ssize_t l, MUTTMENU * menu, int num) entry.key = cryptkey_table[num]; entry.num = num + 1; - m_strformat(s, l, COLS - SW, PgpEntryFormat, crypt_entry_fmt, &entry, - option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0); + m_strformat(s, l, COLS - SW, mod_crypt.pgp_entry_format, crypt_entry_fmt, + &entry, option(OPTARROWCURSOR) ? M_FORMAT_ARROWCURSOR : 0); } /* Compare two addresses and the keyid to be used for sorting. */