diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-18 06:40:25 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-18 06:40:25 +0000 |
commit | 624b6bec3377d25849725c867d63bf7d98a7aa48 (patch) | |
tree | e56daa8947de3b7cd81324f61efbe05f76d84f81 /rcfile_y.y | |
parent | 194f6a69e8db6392c1c16e228e954312a1b9f347 (diff) | |
download | fetchmail-624b6bec3377d25849725c867d63bf7d98a7aa48.tar.gz fetchmail-624b6bec3377d25849725c867d63bf7d98a7aa48.tar.bz2 fetchmail-624b6bec3377d25849725c867d63bf7d98a7aa48.zip |
Added dns/nodns.
svn path=/trunk/; revision=785
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 22 |
1 files changed, 18 insertions, 4 deletions
@@ -49,7 +49,7 @@ static void prc_reset(); %token <proto> PROTO %token <sval> STRING %token <number> NUMBER -%token <flag> KEEP FLUSH FETCHALL REWRITE PORT +%token <flag> KEEP FLUSH FETCHALL REWRITE DNS PORT /* these are actually used by the lexer */ %token FLAG_TRUE 2 @@ -128,6 +128,7 @@ serv_option : AKA alias_list fprintf(stderr, "fetchmail: monitor option is only supported under Linux\n"); #endif /* linux */ } + | DNS {current.server.no_dns = ($1==FLAG_FALSE);} ; /* @@ -190,7 +191,7 @@ user_option : TO localnames HERE | KEEP {current.keep = ($1==FLAG_TRUE);} | FLUSH {current.flush = ($1==FLAG_TRUE);} | FETCHALL {current.fetchall = ($1==FLAG_TRUE);} - | REWRITE {current.norewrite = ($1==FLAG_TRUE);} + | REWRITE {current.no_rewrite =($1==FLAG_FALSE);} | LIMIT NUMBER {current.limit = $2;} | FETCHLIMIT NUMBER {current.fetchlimit = $2;} | BATCHLIMIT NUMBER {current.batchlimit = $2;} @@ -331,6 +332,12 @@ static void prc_register(void) FLAG_FORCE(server.timeout); FLAG_FORCE(server.envelope); FLAG_FORCE(server.skip); + FLAG_FORCE(server.no_dns); + +#ifdef HAVE_RES_SEARCH + FLAG_FORCE(server.interface); + FLAG_FORCE(server.monitor); +#endif /* HAVE_RES_SEARCH */ FLAG_FORCE(remotename); FLAG_FORCE(password); @@ -342,10 +349,11 @@ static void prc_register(void) FLAG_FORCE(keep); FLAG_FORCE(flush); FLAG_FORCE(fetchall); - FLAG_FORCE(norewrite); + FLAG_FORCE(no_rewrite); FLAG_FORCE(limit); FLAG_FORCE(fetchlimit); FLAG_FORCE(batchlimit); + #undef FLAG_FORCE (void) hostalloc(¤t); @@ -364,6 +372,12 @@ void optmerge(struct query *h2, struct query *h1) FLAG_MERGE(server.timeout); FLAG_MERGE(server.envelope); FLAG_MERGE(server.skip); + FLAG_MERGE(server.no_dns); + +#ifdef HAVE_RES_SEARCH + FLAG_MERGE(server.interface); + FLAG_MERGE(server.monitor); +#endif /* HAVE_RES_SEARCH */ FLAG_MERGE(remotename); FLAG_MERGE(password); @@ -375,7 +389,7 @@ void optmerge(struct query *h2, struct query *h1) FLAG_MERGE(keep); FLAG_MERGE(flush); FLAG_MERGE(fetchall); - FLAG_MERGE(norewrite); + FLAG_MERGE(no_rewrite); FLAG_MERGE(limit); FLAG_MERGE(fetchlimit); FLAG_MERGE(batchlimit); |