aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-08 08:21:38 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-08 08:21:38 +0000
commitb4fe63bde9631e072f26911363739c0042d8b2db (patch)
treed763b83948983c0f4a592c36dd0c66622d88ef7c /rcfile_y.y
parent9edf372fb9e281930eaabd090731f9a5c312f7fb (diff)
downloadfetchmail-b4fe63bde9631e072f26911363739c0042d8b2db.tar.gz
fetchmail-b4fe63bde9631e072f26911363739c0042d8b2db.tar.bz2
fetchmail-b4fe63bde9631e072f26911363739c0042d8b2db.zip
More English-like keywords.
svn path=/trunk/; revision=249
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y15
1 files changed, 11 insertions, 4 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 32c5b244..6fa5d31d 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -29,7 +29,8 @@ int yydebug; /* in case we didn't generate with -- debug */
char *sval;
}
-%token SERVER PROTOCOL USERNAME PASSWORD FOLDER SMTPHOST MDA DEFAULTS IS HERE
+%token DEFAULTS SERVER PROTOCOL
+%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE
%token <proto> PROTO
%token <sval> STRING
%token <flag> KEEP FLUSH FETCHALL REWRITE PORT SKIP
@@ -69,11 +70,16 @@ userspecs : user1opts {prc_register(); prc_reset();}
| explicits
;
-explicits : userdef {prc_register(); prc_reset();}
- | explicits userdef {prc_register(); prc_reset();}
+explicits : explicitdef {prc_register(); prc_reset();}
+ | explicits explicitdef {prc_register(); prc_reset();}
;
-userdef : USERNAME STRING user0opts {prc_setremote($2);}
+explicitdef : userdef user0opts
+ ;
+
+userdef : USERNAME STRING {prc_setremote($2);}
+ | USERNAME STRING HERE {prc_setlocal($2);}
+ | USERNAME STRING THERE {prc_setremote($2);}
;
user0opts : /* EMPTY */
@@ -86,6 +92,7 @@ user1opts : user_option
user_option : IS STRING {prc_setlocal($2);}
| IS STRING HERE {prc_setlocal($2);}
+ | IS STRING THERE {prc_setremote($2);}
| PASSWORD STRING {prc_setpassword($2);}
| FOLDER STRING {prc_setfolder($2);}
| SMTPHOST STRING {prc_setsmtphost($2);}