aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-08 05:38:41 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-08 05:38:41 +0000
commit4cf99da5da3d1e2d54cf2ac81c0dfd5bf94ca98a (patch)
tree9f0555eab9627e9c6f168fc3bba971de32cffda2 /rcfile_y.y
parent995f32756f7c222468bb3527ae6b9f340fe333ea (diff)
downloadfetchmail-4cf99da5da3d1e2d54cf2ac81c0dfd5bf94ca98a.tar.gz
fetchmail-4cf99da5da3d1e2d54cf2ac81c0dfd5bf94ca98a.tar.bz2
fetchmail-4cf99da5da3d1e2d54cf2ac81c0dfd5bf94ca98a.zip
Implement batchlimit option.
svn path=/trunk/; revision=503
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y11
1 files changed, 7 insertions, 4 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index d41cecc3..5cbbc331 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -43,6 +43,7 @@ static void prc_reset();
%token DEFAULTS POLL PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS
%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT
+%token SET BATCHLIMIT
%token <proto> PROTO
%token <sval> STRING
%token <number> NUMBER
@@ -62,7 +63,9 @@ statement_list : statement
| statement_list statement
;
-statement : define_server serverspecs userspecs
+/* future global options should also have the form SET <name> <value> */
+statement : define_server serverspecs userspecs
+ | SET BATCHLIMIT MAP NUMBER {batchlimit = $4;}
;
define_server : POLL STRING {strcpy(current.servername, $2);}
@@ -152,10 +155,10 @@ static struct query *hosttail; /* where to add new elements */
void yyerror (s)
/* report a syntax error */
-const char *s; /* error string */
+char *s; /* error string */
{
- fprintf(stderr,"%s line %d: %s at %s\n", rcfile, prc_lineno, s, yytext);
- prc_errflag++;
+ fprintf(stderr,"%s line %d: %s at %s\n", rcfile, prc_lineno, s, yytext);
+ prc_errflag++;
}
int prc_filecheck(pathname)