aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
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 /rcfile_y.y
parent2f1b2a582eda2b8993771bfece902f696c4dd9c4 (diff)
downloadfetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.tar.gz
fetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.tar.bz2
fetchmail-54f81620fae6f46c55a930a348008e11c75b4f88.zip
Added `fetchlimit'.
svn path=/trunk/; revision=657
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 b9a97435..3c0f0484 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -44,7 +44,7 @@ static void prc_reset();
%token DEFAULTS POLL SKIP AKA PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS
%token ENVELOPE USERNAME PASSWORD FOLDER SMTPHOST MDA LIMIT
%token IS HERE THERE TO MAP WILDCARD
-%token SET BATCHLIMIT LOGFILE
+%token SET BATCHLIMIT FETCHLIMIT LOGFILE
%token <proto> PROTO
%token <sval> STRING
%token <number> NUMBER
@@ -171,6 +171,7 @@ user_option : TO localnames HERE
| FETCHALL {current.fetchall = ($1==FLAG_TRUE);}
| REWRITE {current.norewrite = ($1==FLAG_TRUE);}
| LIMIT NUMBER {current.limit = $2;}
+ | FETCHLIMIT NUMBER {current.fetchlimit = $2;}
;
%%
@@ -329,6 +330,7 @@ static void prc_register(void)
FLAG_FORCE(authenticate);
FLAG_FORCE(timeout);
FLAG_FORCE(limit);
+ FLAG_FORCE(fetchlimit);
#undef FLAG_FORCE
(void) hostalloc(&current);
@@ -358,6 +360,7 @@ void optmerge(struct query *h2, struct query *h1)
FLAG_MERGE(authenticate);
FLAG_MERGE(timeout);
FLAG_MERGE(limit);
+ FLAG_MERGE(fetchlimit);
#undef FLAG_MERGE
}