diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-01-30 17:29:36 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-01-30 17:29:36 +0000 |
commit | 65179f921d37756ed89e1ef7965e13bd5f319650 (patch) | |
tree | fdabc324b67d060eab0509040cbc1a7b998658a5 /rcfile_y.y | |
parent | 6a529e4eac97ac7255229fbadcac721b5ba6925b (diff) | |
download | fetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.tar.gz fetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.tar.bz2 fetchmail-65179f921d37756ed89e1ef7965e13bd5f319650.zip |
Add stripcr option.
svn path=/trunk/; revision=842
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -49,7 +49,7 @@ static void prc_reset(); %token <proto> PROTO %token <sval> STRING %token <number> NUMBER -%token <flag> KEEP FLUSH FETCHALL REWRITE DNS PORT +%token <flag> KEEP FLUSH FETCHALL REWRITE STRIPCR DNS PORT /* these are actually used by the lexer */ %token FLAG_TRUE 2 @@ -76,7 +76,10 @@ statement : SET LOGFILE MAP STRING {logfile = xstrdup($4);} */ | define_server serverspecs {prc_register(); prc_reset();} | define_server serverspecs userspecs - {memset(¤t,'\0',sizeof(current));} + { + memset(¤t,'\0',sizeof(current)); + current.stripcr = -1; + } ; define_server : POLL STRING {current.server.names = (struct idlist *)NULL; @@ -192,6 +195,7 @@ user_option : TO localnames HERE | FLUSH {current.flush = ($1==FLAG_TRUE);} | FETCHALL {current.fetchall = ($1==FLAG_TRUE);} | REWRITE {current.no_rewrite =($1==FLAG_FALSE);} + | STRIPCR {current.stripcr = ($1==FLAG_TRUE);} | LIMIT NUMBER {current.limit = $2;} | FETCHLIMIT NUMBER {current.fetchlimit = $2;} | BATCHLIMIT NUMBER {current.batchlimit = $2;} |