aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
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
}