aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-06-11 16:07:37 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-06-11 16:07:37 +0000
commit1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030 (patch)
tree997f49b2b4a24f2691763db9533cd93abefe518d /options.c
parent672bf0838ae4d00dc71020fa9e5a8b1b377ba045 (diff)
downloadfetchmail-1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030.tar.gz
fetchmail-1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030.tar.bz2
fetchmail-1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030.zip
Put in Dave Holland's feature.
svn path=/trunk/; revision=1089
Diffstat (limited to 'options.c')
-rw-r--r--options.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/options.c b/options.c
index 0241ca57..ff932f96 100644
--- a/options.c
+++ b/options.c
@@ -225,6 +225,8 @@ struct query *ctl; /* option record to be initialized */
case 't':
case LA_TIMEOUT:
ctl->server.timeout = atoi(optarg);
+ if (ctl->server.timeout == 0)
+ ctl->server.timeout = -1;
break;
case 'E':
case LA_ENVELOPE:
@@ -258,6 +260,8 @@ struct query *ctl; /* option record to be initialized */
case 'l':
case LA_LIMIT:
ctl->limit = atoi(optarg);
+ if (ctl->limit == 0)
+ ctl->limit = -1;
break;
case 'r':
case LA_FOLDER:
@@ -281,10 +285,14 @@ struct query *ctl; /* option record to be initialized */
case 'b':
case LA_BATCHLIMIT:
ctl->batchlimit = atoi(optarg);
+ if (ctl->batchlimit == 0)
+ ctl->batchlimit = -1;
break;
case 'B':
case LA_FETCHLIMIT:
ctl->fetchlimit = atoi(optarg);
+ if (ctl->fetchlimit == 0)
+ ctl->fetchlimit = -1;
break;
case 'm':
case LA_MDA: