aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-14 16:28:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-14 16:28:52 +0000
commite72ec8a0b777fdcc929919e28f1b0893a85271b5 (patch)
tree7be47972f93d45dffa6f8084d99563be69d2b89a /rcfile_y.y
parent32b10e9e33c10dd3223fde2541bbfea0852c2af5 (diff)
downloadfetchmail-e72ec8a0b777fdcc929919e28f1b0893a85271b5.tar.gz
fetchmail-e72ec8a0b777fdcc929919e28f1b0893a85271b5.tar.bz2
fetchmail-e72ec8a0b777fdcc929919e28f1b0893a85271b5.zip
Added `to' keyword, changed local-user default.
svn path=/trunk/; revision=331
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index b0c5df13..f6df31ff 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -37,7 +37,7 @@ static int prc_errflag;
}
%token DEFAULTS SERVER PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS
-%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE
+%token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO
%token <proto> PROTO
%token <sval> STRING
%token <number> NUMBER
@@ -109,7 +109,9 @@ user1opts : user_option
| user1opts user_option
;
-user_option : IS STRING {strcpy(current.localname, $2);}
+user_option : TO STRING {strcpy(current.localname, $2);}
+ | TO STRING HERE {strcpy(current.localname, $2);}
+ | IS STRING {strcpy(current.localname, $2);}
| IS STRING HERE {strcpy(current.localname, $2);}
| IS STRING THERE {strcpy(current.remotename, $2);}
| PASSWORD STRING {strcpy(current.password, $2);}