aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-01-30 17:29:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-01-30 17:29:36 +0000
commit65179f921d37756ed89e1ef7965e13bd5f319650 (patch)
treefdabc324b67d060eab0509040cbc1a7b998658a5 /rcfile_y.y
parent6a529e4eac97ac7255229fbadcac721b5ba6925b (diff)
downloadfetchmail-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.y8
1 files changed, 6 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index dfc3dbdd..e9a381b0 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -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(&current,'\0',sizeof(current));}
+ {
+ memset(&current,'\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;}