$encrypt_options = $prefs->isLocked('default_encrypt')
? $prefs->getValue('default_encrypt')
: $vars->encrypt_options;
-if ($prefs->getValue('use_pgp') && !$prefs->isLocked('default_encrypt')) {
+if ($prefs->getValue('use_pgp') &&
+ !$prefs->isLocked('default_encrypt') &&
+ $prefs->getValue('pgp_reply_pubkey')) {
$default_encrypt = $prefs->getValue('default_encrypt');
if (!$vars->compose_formToken &&
in_array($default_encrypt, array(IMP::PGP_ENCRYPT, IMP::PGP_SIGNENC))) {
'desc' => sprintf(_("Control PGP support for %s."), $GLOBALS['registry']->get('name')),
'members' => array(
'use_pgp', 'use_pgp_text', 'pgp_attach_pubkey', 'pgp_scan_body',
- 'pgp_verify', 'pgppublickey', 'pgpprivatekey'
+ 'pgp_verify', 'pgp_reply_pubkey', 'pgppublickey', 'pgpprivatekey'
)
);
'help' => 'pgp-option-verify'
);
+$_prefs['pgp_reply_pubkey'] = array(
+ 'value' => 1,
+ 'advanced' => true,
+ 'type' => 'checkbox',
+ 'desc' => _("Check for valid recipient PGP public keys while replying?"),
+ 'help' => 'pgp-option-reply-pubkey'
+);
+
$_prefs['pgppublickey'] = array(
'type' => 'special'
);
v5.0-git
--------
+[mms] Add preference to control if we check for recipient PGP public keys
+ when replying (Request #7962).
[mms] Add preference to allow for automatic spam reporting when explicitly
moving messages to the Spam mailbox (Request #6455).
[mms] Automatically determine view based on browser and 'dynamic_view'
$ui->suppress[] = 'pgp_attach_pubkey';
$ui->suppress[] = 'pgp_scan_body';
$ui->suppress[] = 'pgp_verify';
+ $ui->suppress[] = 'pgp_reply_pubkey';
$ui->suppress[] = 'pgppublickey';
$ui->suppress[] = 'pgpprivatekey';
}
</para>
</entry>
+<entry id="pgp-option-reply-pubkey">
+ <title>PGP: Validate PGP Public Keys When Replying</title>
+ <heading>Validate PGP Public Keys When Replying</heading>
+ <para>
+ If set, and PGP encryption is used by default for composing messages, IMP will verify that it can access all recipients' public keys when the reply is first created. This has the disadvantage that it may cause a delay in opening the reply window. However, it has the advantage of informing you immediately if you will be able to correctly send the encrypted message to all recipients immediately.
+ </para>
+</entry>
+
<entry id="compose-options-encrypt">
<title>Message Composition: Encryption Options</title>
<heading>No Encryption</heading>