aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-pgp-context.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-22 06:45:41 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-22 06:45:41 +0800
commit9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c (patch)
tree5d71ee16d35a119f8aff5687a97a0cd0a7f946f5 /camel/camel-pgp-context.c
parent09a6132a1a04a11c8f1343450fd33c0a855646b6 (diff)
downloadgsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar.gz
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar.bz2
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar.lz
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar.xz
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.tar.zst
gsoc2013-evolution-9e20b50bd1965b8c26bf6fa59f513c93fe05fa4c.zip
Turn on --batch and reenable gpg keyserver lookups. (pgp_decrypt): Disable
2001-08-21 Jeffrey Stedfast <fejj@ximian.com> * camel-pgp-context.c (pgp_verify): Turn on --batch and reenable gpg keyserver lookups. (pgp_decrypt): Disable keyserver lookups if we are disconnected. svn path=/trunk/; revision=12372
Diffstat (limited to 'camel/camel-pgp-context.c')
-rw-r--r--camel/camel-pgp-context.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 42d0ad35b0..3d048039d1 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -911,16 +911,16 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
case CAMEL_PGP_TYPE_GPG:
argv[i++] = "gpg";
+ argv[i++] = "--verbose";
+ argv[i++] = "--yes";
+ argv[i++] = "--batch";
+
argv[i++] = "--verify";
argv[i++] = "--no-tty";
- /*if (!camel_session_is_online (ctx->session))*/
- argv[i++] = "--no-auto-key-retrieve";
-
- /*argv[i++] = "--verbose";*/
- /*argv[i++] = "--yes";*/
- /*argv[i++] = "--batch";*/
+ if (!camel_session_is_online (ctx->session))
+ argv[i++] = "--no-auto-key-retrieve";
if (sigstream != NULL)
argv[i++] = sigfile;
@@ -1313,6 +1313,9 @@ pgp_decrypt (CamelCipherContext *ctx, CamelStream *istream,
argv[i++] = "--yes";
argv[i++] = "--batch";
+ if (!camel_session_is_online (ctx->session))
+ argv[i++] = "--no-auto-key-retrieve";
+
argv[i++] = "--output";
argv[i++] = "-"; /* output to stdout */