aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 8f93c350..ec6a8b24 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -33,9 +33,13 @@ int yydebug; /* in case we didn't generate with -- debug */
%token KW_REMOTEFOLDER KW_LOCALFOLDER KW_MDA KW_EOL KW_DEFAULTS
%token <proto> PROTO_POP2 PROTO_POP3 PROTO_IMAP PROTO_APOP PROTO_RPOP
%token <sval> PARAM_STRING
-%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL
+%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL KW_REWRITE
%type <proto> proto;
+/* these are actually used by the lexer */
+%token TRUE 1
+%token FALSE 0
+
%%
rcfile: rcline
@@ -68,6 +72,7 @@ serv_option_clause:
| KW_KEEP {prc_setkeep($1);}
| KW_FLUSH {prc_setflush($1);}
| KW_FETCHALL {prc_setfetchall($1);}
+ | KW_REWRITE {prc_setrewrite($1);}
;
proto: PROTO_POP2