diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-11-13 20:51:59 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-11-13 20:51:59 +0000 |
commit | 0f3e9e0c241c4152147d9be8b15ac367109c4146 (patch) | |
tree | e3ff191d956ce716a84503f54bebca2c83dc6b8a | |
parent | a6198d3fbc69f04653d3f13ae5feb3d151bb775d (diff) | |
download | fetchmail-0f3e9e0c241c4152147d9be8b15ac367109c4146.tar.gz fetchmail-0f3e9e0c241c4152147d9be8b15ac367109c4146.tar.bz2 fetchmail-0f3e9e0c241c4152147d9be8b15ac367109c4146.zip |
Change handling of skip option.
svn path=/trunk/; revision=538
-rw-r--r-- | rcfile_l.l | 3 | ||||
-rw-r--r-- | rcfile_y.y | 6 |
2 files changed, 4 insertions, 5 deletions
@@ -24,6 +24,7 @@ batchlimit { return BATCHLIMIT; } defaults { return DEFAULTS; } server { return POLL; } poll { return POLL; } +skip { return SKIP; } proto(col)? { return PROTOCOL; } port { return PORT; } auth(enticate)? { return AUTHENTICATE; } @@ -45,12 +46,10 @@ keep { yylval.flag = FLAG_TRUE; return KEEP; } flush { yylval.flag = FLAG_TRUE; return FLUSH; } fetchall { yylval.flag = FLAG_TRUE; return FETCHALL; } rewrite { yylval.flag = FLAG_FALSE; return REWRITE; } -skip { yylval.flag = FLAG_TRUE; return SKIP; } nokeep { yylval.flag = FLAG_FALSE; return KEEP; } noflush { yylval.flag = FLAG_FALSE; return FLUSH; } nofetchall { yylval.flag = FLAG_FALSE; return FETCHALL; } norewrite { yylval.flag = FLAG_TRUE; return REWRITE; } -noskip { yylval.flag = FLAG_FALSE; return SKIP; } limit { return LIMIT; } with {/* EMPTY */} @@ -41,13 +41,13 @@ static void prc_reset(); char *sval; } -%token DEFAULTS POLL PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS +%token DEFAULTS POLL SKIP PROTOCOL AUTHENTICATE TIMEOUT KPOP KERBEROS %token USERNAME PASSWORD FOLDER SMTPHOST MDA IS HERE THERE TO MAP LIMIT %token SET BATCHLIMIT %token <proto> PROTO %token <sval> STRING %token <number> NUMBER -%token <flag> KEEP FLUSH FETCHALL REWRITE PORT SKIP +%token <flag> KEEP FLUSH FETCHALL REWRITE PORT /* these are actually used by the lexer */ %token FLAG_TRUE 2 @@ -70,7 +70,7 @@ statement : define_server serverspecs userspecs define_server : POLL STRING {strcpy(current.servername, $2);} | SKIP STRING {strcpy(current.servername, $2); - current.skip=($1==FLAG_TRUE);} + current.skip = TRUE;} | DEFAULTS {strcpy(current.servername,"defaults");} ; |