diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-20 03:31:52 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-20 03:31:52 +0000 |
commit | 28f5cb68038553e6a13592ddf6d78333b605137d (patch) | |
tree | a962b1367532286d75c31a894f2ddac088836e43 /rcfile_y.y | |
parent | 3b1e076e2d58a753bf088a7bcdf442d1a387c0d0 (diff) | |
download | fetchmail-28f5cb68038553e6a13592ddf6d78333b605137d.tar.gz fetchmail-28f5cb68038553e6a13592ddf6d78333b605137d.tar.bz2 fetchmail-28f5cb68038553e6a13592ddf6d78333b605137d.zip |
Implemented aka option.
svn path=/trunk/; revision=564
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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> 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 */ |