aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-20 03:31:52 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-20 03:31:52 +0000
commit28f5cb68038553e6a13592ddf6d78333b605137d (patch)
treea962b1367532286d75c31a894f2ddac088836e43 /rcfile_y.y
parent3b1e076e2d58a753bf088a7bcdf442d1a387c0d0 (diff)
downloadfetchmail-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.y13
1 files changed, 10 insertions, 3 deletions
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> PROTO
@@ -86,7 +86,12 @@ serverspecs : /* EMPTY */
| serverspecs serv_option
;
-serv_option : PROTOCOL PROTO {current.protocol = $2;}
+alias_list : STRING {save_uid(&current.aka, -1, $1);}
+ | alias_list STRING {save_uid(&current.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(&current, '\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 */