aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/camel-pgp-context.c6
2 files changed, 8 insertions, 5 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index e1ef7e62f2..16b424ee81 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,9 +1,10 @@
2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (pgp_verify): Send the
- --no-auto-key-retrieve argument to gpg so that we don't have to
- worry about gpg hanging if it can't connect to the key servers,
- because now it shouldn't even attempt to.
+ --no-auto-key-retrieve argument to gpg if we are in offline mode
+ so that we don't have to worry about gpg hanging if it can't
+ connect to the key servers, because now it shouldn't even attempt
+ to.
2001-07-05 Chris Toshok <toshok@ximian.com>
diff --git a/camel/camel-pgp-context.c b/camel/camel-pgp-context.c
index 6651b0b3d6..881cc0c16a 100644
--- a/camel/camel-pgp-context.c
+++ b/camel/camel-pgp-context.c
@@ -388,7 +388,7 @@ crypto_exec_with_passwd (const char *path, char *argv[], const char *input, int
if (size + 4096 > alloc_size) {
alloc_size += 4096;
- buf = g_realloc (buf , alloc_size);
+ buf = g_realloc (buf, alloc_size);
}
read_len = read (op_fds[0], &buf[size],
alloc_size - size - 1);
@@ -901,7 +901,9 @@ pgp_verify (CamelCipherContext *ctx, CamelCipherHash hash, CamelStream *istream,
argv[i++] = "--verify";
argv[i++] = "--no-tty";
- argv[i++] = "--no-auto-key-retrieve";
+
+ if (!camel_session_is_online (ctx->session))
+ argv[i++] = "--no-auto-key-retrieve";
/*argv[i++] = "--verbose";*/
/*argv[i++] = "--yes";*/
/*argv[i++] = "--batch";*/
m ports in categories starting with A.edwin2006-05-031-1/+0 * Reset markp due to lack of response to email and maintainer-timeouts.linimon2006-04-151-1/+1 * Update port: archivers/xdms update MASTER_SITE and WWW on pkg-descredwin2005-11-221-1/+1 * Unbreak on 4.x: Replace stdint.h with inttypes.hvs2005-10-201-1/+6 * Update to 1.3.1.markp2005-07-111-9/+7 * De-pkg-comment.markp2003-02-231-2/+4 * PERL -> REINPLACEedwin2002-11-041-1/+2 * Fixed broken WWW and MASTER_SITES links.markp2001-12-091-1/+1 * Updated MAINTAINER to my new committer email addressmarkp2001-06-081-1/+1 * change master site and WWW:ijliao2001-05-231-1/+1