aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-crypto.c')
-rw-r--r--mail/mail-crypto.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/mail-crypto.c b/mail/mail-crypto.c
index bad81e5539..f7e003f07c 100644
--- a/mail/mail-crypto.c
+++ b/mail/mail-crypto.c
@@ -49,7 +49,8 @@ mail_crypto_pgp_mime_part_sign (CamelMimePart **mime_part, const char *userid, C
CamelPgpContext *context;
context = camel_pgp_context_new (session, mail_config_get_pgp_type (),
- mail_config_get_pgp_path ());
+ mail_config_get_pgp_path (),
+ mail_config_get_pgp_remember_pgp_passphrase ());
if (context) {
camel_pgp_mime_part_sign (context, mime_part, userid, hash, ex);
@@ -74,7 +75,8 @@ mail_crypto_pgp_mime_part_verify (CamelMimePart *mime_part, CamelException *ex)
CamelPgpContext *context;
context = camel_pgp_context_new (session, mail_config_get_pgp_type (),
- mail_config_get_pgp_path ());
+ mail_config_get_pgp_path (),
+ mail_config_get_pgp_remember_pgp_passphrase ());
if (context) {
valid = camel_pgp_mime_part_verify (context, mime_part, ex);
@@ -103,7 +105,8 @@ mail_crypto_pgp_mime_part_encrypt (CamelMimePart **mime_part, GPtrArray *recipie
CamelPgpContext *context;
context = camel_pgp_context_new (session, mail_config_get_pgp_type (),
- mail_config_get_pgp_path ());
+ mail_config_get_pgp_path (),
+ mail_config_get_pgp_remember_pgp_passphrase ());
if (context) {
camel_pgp_mime_part_encrypt (context, mime_part, recipients, ex);
@@ -128,7 +131,8 @@ mail_crypto_pgp_mime_part_decrypt (CamelMimePart *mime_part, CamelException *ex)
CamelMimePart *part = NULL;
context = camel_pgp_context_new (session, mail_config_get_pgp_type (),
- mail_config_get_pgp_path ());
+ mail_config_get_pgp_path (),
+ mail_config_get_pgp_remember_pgp_passphrase ());
if (context) {
part = camel_pgp_mime_part_decrypt (context, mime_part, ex);