From 93d237073e72102640dcf3442d1887d69776921c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 May 1997 20:41:37 +0000 Subject: Added the interval option. svn path=/trunk/; revision=1040 --- rcfile_y.y | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rcfile_y.y') diff --git a/rcfile_y.y b/rcfile_y.y index c2f121a5..89251766 100644 --- a/rcfile_y.y +++ b/rcfile_y.y @@ -49,7 +49,7 @@ static int reset_server(char *name, int skip); %token PROTO %token STRING %token NUMBER -%token NO KEEP FLUSH FETCHALL REWRITE FORCECR STRIPCR DNS PORT UIDL +%token NO KEEP FLUSH FETCHALL REWRITE FORCECR STRIPCR DNS PORT UIDL INTERVAL %% @@ -121,6 +121,7 @@ serv_option : AKA alias_list | UIDL {current.server.uidl = FLAG_TRUE;} | NO UIDL {current.server.uidl = FLAG_FALSE;} | PORT NUMBER {current.server.port = $2;} + | INTERVAL NUMBER {current.server.interval = $2;} | AUTHENTICATE PASSWORD {current.server.authenticate = A_PASSWORD;} | AUTHENTICATE KERBEROS4 {current.server.authenticate = A_KERBEROS_V4;} | TIMEOUT NUMBER {current.server.timeout = $2;} @@ -387,6 +388,7 @@ static void record_current(void) #define FLAG_FORCE(fld) if (cmd_opts.fld) current.fld = cmd_opts.fld FLAG_FORCE(server.protocol); FLAG_FORCE(server.port); + FLAG_FORCE(server.interval); FLAG_FORCE(server.authenticate); FLAG_FORCE(server.timeout); FLAG_FORCE(server.envelope); @@ -434,6 +436,7 @@ void optmerge(struct query *h2, struct query *h1) #define FLAG_MERGE(fld) if (!h2->fld) h2->fld = h1->fld FLAG_MERGE(server.protocol); FLAG_MERGE(server.port); + FLAG_MERGE(server.interval); FLAG_MERGE(server.authenticate); FLAG_MERGE(server.timeout); FLAG_MERGE(server.envelope); -- cgit v1.2.3