aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-16 13:01:06 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-16 13:01:06 +0000
commit580682dcaae8305ac9ca9c5e1011ef963d86f5d1 (patch)
tree8d5ccac1987c1e986400daa4f5a411bde885ecf9 /options.c
parent380a2d1a3a08c38a6280e1a1bc376a4c3b79e21d (diff)
downloadfetchmail-580682dcaae8305ac9ca9c5e1011ef963d86f5d1.tar.gz
fetchmail-580682dcaae8305ac9ca9c5e1011ef963d86f5d1.tar.bz2
fetchmail-580682dcaae8305ac9ca9c5e1011ef963d86f5d1.zip
Now we can use --limit with daemon mode.
svn path=/trunk/; revision=2091
Diffstat (limited to 'options.c')
-rw-r--r--options.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/options.c b/options.c
index aa63002b..7883eed1 100644
--- a/options.c
+++ b/options.c
@@ -69,10 +69,11 @@
#define LA_MONITOR 41
#define LA_CONFIGDUMP 42
#define LA_YYDEBUG 43
+#define LA_WARNINGS 44
/* options still left: CgGhHjJoORwWxXYz */
static const char *shortoptions =
- "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:y";
+ "?Vcsvd:NqL:f:i:p:UP:A:t:E:Q:u:akKFnl:r:S:Z:b:B:e:m:T:I:M:yw:";
static const struct option longoptions[] = {
/* this can be const because all flag fields are 0 and will never get set */
@@ -134,6 +135,8 @@ static const struct option longoptions[] = {
{"yydebug", no_argument, (int *) 0, LA_YYDEBUG },
+ {"warnings", required_argument, (int *) 0, LA_WARNINGS },
+
{(char *) 0, no_argument, (int *) 0, 0 }
};
@@ -495,6 +498,12 @@ struct query *ctl; /* option record to be initialized */
yydebug = TRUE;
break;
+ case 'w':
+ case LA_WARNINGS:
+ c = xatoi(optarg, &errflag);
+ ctl->warnings = NUM_VALUE(c);
+ break;
+
case LA_CONFIGDUMP:
configdump = TRUE;
break;
@@ -557,6 +566,7 @@ struct query *ctl; /* option record to be initialized */
fputs(" -F, --flush delete old messages from server\n", stderr);
fputs(" -n, --norewrite don't rewrite header addresses\n", stderr);
fputs(" -l, --limit don't fetch messages over given size\n", stderr);
+ fputs(" -w, --warnings interval between warning mail notification\n", stderr);
#if NET_SECURITY
fputs(" -T, --netsec set IP security request\n", stderr);