2001-07-05 Jeffrey Stedfast <fejj@ximian.com>
* camel-pgp-context.c (pgp_verify): Send the
--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 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>
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);
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";*/