aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-29 15:10:22 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-29 15:10:22 +0000
commitd7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe (patch)
treedfae0c000c564f67697c89f5d253cdfbe01f773b /rcfile_y.y
parentb1ee6be33d46826e60353a368850cfe098e4826e (diff)
downloadfetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.tar.gz
fetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.tar.bz2
fetchmail-d7f9a56364a7457d662dc0e2a2eaf0075e3d3fbe.zip
Make newline escapes optional. JEEP_IS_DEFAULT is gone. Lots of
other man page improvements. svn path=/trunk/; revision=181
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y21
1 files changed, 6 insertions, 15 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index ac1d1ed4..4de27f9c 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -30,11 +30,10 @@ int yydebug; /* in case we didn't generate with -- debug */
}
%token KW_SERVER KW_PROTOCOL KW_USERNAME KW_PASSWORD
-%token KW_REMOTEFOLDER KW_SMTPHOST KW_EOL KW_DEFAULTS
-%token <proto> PROTO_AUTO PROTO_POP2 PROTO_POP3 PROTO_IMAP PROTO_APOP PROTO_RPOP
-%token <sval> PARAM_STRING
-%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL KW_REWRITE KW_PORT KW_SKIP
-%type <proto> proto;
+%token KW_REMOTEFOLDER KW_SMTPHOST KW_DEFAULTS
+%token <proto> KW_PROTO
+%token <sval> PARAM_STRING
+%token <flag> KW_KEEP KW_FLUSH KW_FETCHALL KW_REWRITE KW_PORT KW_SKIP
/* these are actually used by the lexer */
%token TRUE 1
@@ -46,7 +45,7 @@ rcfile: rcline
| rcfile rcline
;
-rcline: statement KW_EOL
+rcline: statement
;
statement:
@@ -63,7 +62,7 @@ server_options: serv_option_clause
;
serv_option_clause:
- KW_PROTOCOL proto {prc_setproto($2);}
+ KW_PROTOCOL KW_PROTO {prc_setproto($2);}
| KW_USERNAME PARAM_STRING {prc_remotename($2);}
| KW_PASSWORD PARAM_STRING {prc_setpassword($2);}
| KW_REMOTEFOLDER PARAM_STRING {prc_setremote($2);}
@@ -76,16 +75,8 @@ serv_option_clause:
| KW_PORT PARAM_STRING {prc_setport($2);}
;
-proto: PROTO_POP2
- | PROTO_POP3
- | PROTO_IMAP
- | PROTO_APOP
- | PROTO_RPOP
- ;
-
%%
-
yyerror (s)
char *s;
{