aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-18 05:06:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-18 05:06:19 +0000
commit54f81620fae6f46c55a930a348008e11c75b4f88 (patch)
tree6f57ff815374547642a609c4f8efa208749cbe2f /options.c
parent2f1b2a582eda2b8993771bfece902f696c4dd9c4 (diff)
downloadfetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.tar.gz
fetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.tar.bz2
fetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.zip
Added `fetchlimit'.
svn path=/trunk/; revision=657
Diffstat (limited to 'options.c')
-rw-r--r--options.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/options.c b/options.c
index 88af3799..bbf0236c 100644
--- a/options.c
+++ b/options.c
@@ -41,10 +41,11 @@
#define LA_REMOTEFILE 23
#define LA_SMTPHOST 24
#define LA_BATCHLIMIT 25
-#define LA_MDA 26
-#define LA_YYDEBUG 27
+#define LA_FETCHLIMIT 26
+#define LA_MDA 27
+#define LA_YYDEBUG 28
-static char *shortoptions = "?Vcsvd:NqL:f:i:p:P:A:t:u:akKFnl:r:S:b:m:y";
+static char *shortoptions = "?Vcsvd:NqL:f:i:p:P:A:t:u:akKFnl:r:S:b:B:m:y";
static struct option longoptions[] = {
{"help", no_argument, (int *) 0, LA_HELP },
{"version", no_argument, (int *) 0, LA_VERSION },
@@ -77,6 +78,7 @@ static struct option longoptions[] = {
{"remote", required_argument, (int *) 0, LA_REMOTEFILE },
{"smtphost", required_argument, (int *) 0, LA_SMTPHOST },
{"batchlimit",required_argument, (int *) 0, LA_BATCHLIMIT },
+ {"fetchlimit",required_argument, (int *) 0, LA_FETCHLIMIT },
{"mda", required_argument, (int *) 0, LA_MDA },
{"yydebug", no_argument, (int *) 0, LA_YYDEBUG },
@@ -235,6 +237,10 @@ struct query *ctl; /* option record to be initialized */
case LA_BATCHLIMIT:
cmd_batchlimit = atoi(optarg);
break;
+ case 'B':
+ case LA_FETCHLIMIT:
+ ctl->fetchlimit = atoi(optarg);
+ break;
case 'm':
case LA_MDA:
strncpy(ctl->mda,optarg,sizeof(ctl->mda));
@@ -290,6 +296,7 @@ struct query *ctl; /* option record to be initialized */
fputs(" -S, --smtphost set SMTP forwarding host\n", stderr);
fputs(" -b, --batchlimit set batch limit for SMTP connections\n", stderr);
+ fputs(" -B, --fetchlimit set fetch limit for server connections\n", stderr);
fputs(" -r, --remote specify remote folder name\n", stderr);
return(-1);
}