aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-26 02:37:50 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-26 02:37:50 +0000
commit74631396d18f4c5b025e9cbbb70d0103c783037e (patch)
treee0fe83315284fa905cdecd51108a170815889cec /rcfile_y.y
parentad0c91eabd0349b5f1468b52a9b37a6bb028841b (diff)
downloadfetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.tar.gz
fetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.tar.bz2
fetchmail-74631396d18f4c5b025e9cbbb70d0103c783037e.zip
Added filtering by length. Ugh.
svn path=/trunk/; revision=390
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 6582a31c..ef0ba68c 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -31,7 +31,7 @@ static int prc_errflag;
}
%token DEFAULTS SERVER PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS
-%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP
+%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT
%token <proto> PROTO
%token <sval> STRING
%token <number> NUMBER
@@ -127,6 +127,7 @@ user_option : TO mapping_list HERE
| FLUSH {current.flush = ($1==FLAG_TRUE);}
| FETCHALL {current.fetchall = ($1==FLAG_TRUE);}
| REWRITE {current.norewrite = ($1==FLAG_TRUE);}
+ | LIMIT NUMBER {current.limit = $2;}
;
%%
@@ -283,6 +284,7 @@ int prc_register()
FLAG_FORCE(port);
FLAG_FORCE(authenticate);
FLAG_FORCE(timeout);
+ FLAG_FORCE(limit);
#undef FLAG_FORCE
(void) hostalloc(&current);
@@ -315,6 +317,7 @@ struct hostrec *h2;
FLAG_MERGE(port);
FLAG_MERGE(authenticate);
FLAG_MERGE(timeout);
+ FLAG_MERGE(limit);
#undef FLAG_MERGE
}