From 1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Jun 1997 16:07:37 +0000 Subject: Put in Dave Holland's feature. svn path=/trunk/; revision=1089 --- fetchmail.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 4e128686..a6a3a5b5 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -661,6 +661,10 @@ static int load_params(int argc, char **argv, int optind) if (!ctl->mailboxes) save_str(&ctl->mailboxes, -1, (char *)NULL); + /* maybe user overrode timeout on command line? */ + if (ctl->server.timeout == -1) + ctl->server.timeout = CLIENT_TIMEOUT; + /* sanity checks */ if (ctl->server.port < 0) { @@ -873,7 +877,8 @@ void dump_params (struct query *ctl) putchar('\n'); if (ctl->server.preauthenticate == A_KERBEROS_V4) printf(" Kerberos V4 preauthentication enabled.\n"); - printf(" Server nonresponse timeout is %d seconds", ctl->server.timeout); + if (ctl->server.timeout > 0) + printf(" Server nonresponse timeout is %d seconds", ctl->server.timeout); if (ctl->server.timeout == CLIENT_TIMEOUT) printf(" (default).\n"); else -- cgit v1.2.3