diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-06-11 16:07:37 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-06-11 16:07:37 +0000 |
commit | 1db4207a5ffdc53bbc7cbaffe8d6f0b20bd9b030 (patch) | |
tree | 997f49b2b4a24f2691763db9533cd93abefe518d /options.c | |
parent | 672bf0838ae4d00dc71020fa9e5a8b1b377ba045 (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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: |