diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-09 16:42:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-09 16:42:00 +0000 |
commit | 30041d963fb87fee22d9e13dad96e9699d33d4e3 (patch) | |
tree | 97d811736ad0eab32764f7050db98df4a634f401 /fetchmail.c | |
parent | 2b4f2b8e3843c57895b8f7ef96add7430a49e06a (diff) | |
download | fetchmail-30041d963fb87fee22d9e13dad96e9699d33d4e3.tar.gz fetchmail-30041d963fb87fee22d9e13dad96e9699d33d4e3.tar.bz2 fetchmail-30041d963fb87fee22d9e13dad96e9699d33d4e3.zip |
Arrange for command-line set of batchlimit.
svn path=/trunk/; revision=525
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c index e22568a5..eabef1d0 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -43,6 +43,7 @@ int nodetach; /* if TRUE, don't detach daemon process */ char *logfile; /* log file for daemon mode */ int quitmode; /* if --quit was set */ int check_only; /* if --probe was set */ +int cmd_batchlimit; /* if --batchlimit was set */ /* miscellaneous global controls */ char *rcfile; /* path name of rc file */ @@ -559,6 +560,10 @@ static int load_params(int argc, char **argv, int optind) else initialize_saved_lists(querylist, idfile); + /* if cmd_batchlimit was explicitly set, use it to override batchlimit */ + if (cmd_batchlimit > -1) + batchlimit = cmd_batchlimit; + return(implicitmode); } |