From 28f5cb68038553e6a13592ddf6d78333b605137d Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 20 Nov 1996 03:31:52 +0000 Subject: Implemented aka option. svn path=/trunk/; revision=564 --- rcfile_y.y | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index af6398fb..075c85a7 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -41,7 +41,7 @@ static void prc_reset(); char *sval; } -%token DEFAULTS POLL SKIP PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS +%token DEFAULTS POLL SKIP AKA PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS %token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT %token SET BATCHLIMIT %token PROTO @@ -86,7 +86,12 @@ serverspecs : /* EMPTY */ | serverspecs serv_option ; -serv_option : PROTOCOL PROTO {current.protocol = $2;} +alias_list : STRING {save_uid(¤t.aka, -1, $1);} + | alias_list STRING {save_uid(¤t.aka, -1, $2);} + ; + +serv_option : AKA alias_list + | PROTOCOL PROTO {current.protocol = $2;} | PROTOCOL KPOP { current.protocol = P_POP3; current.authenticate = A_KERBEROS; @@ -247,6 +252,7 @@ static void prc_reset(void) { char savename[HOSTLEN+1]; int saveport, saveproto, saveauth, saveskip; + struct idlist *saveaka; /* * Purpose of this code is to initialize the new server block, but @@ -259,6 +265,7 @@ static void prc_reset(void) saveproto = current.protocol; saveauth = current.authenticate; saveskip = current.skip; + saveaka = current.aka; memset(¤t, '\0', sizeof(current)); @@ -266,6 +273,7 @@ static void prc_reset(void) current.protocol = saveproto; current.authenticate = saveauth; current.skip = saveskip; + current.aka = saveaka; } struct query *hostalloc(init) @@ -342,7 +350,6 @@ void optmerge(struct query *h2, struct query *h1) FLAG_MERGE(timeout); FLAG_MERGE(limit); #undef FLAG_MERGE - } /* easier to do this than cope with variations in where the library lives */ -- cgit v1.2.3