aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-07-20 17:48:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-07-20 17:48:01 +0000
commit2b4651b3546053c71d5566ab2f8b943a43de2354 (patch)
treeda458c2e6d4d9b469e754c83d4e28fc1600efd3f /rcfile_y.y
parentfe13f5844212ba65b0e172ac4087136a36240e44 (diff)
downloadfetchmail-2b4651b3546053c71d5566ab2f8b943a43de2354.tar.gz
fetchmail-2b4651b3546053c71d5566ab2f8b943a43de2354.tar.bz2
fetchmail-2b4651b3546053c71d5566ab2f8b943a43de2354.zip
Can specify multiple spam-blocks now.
svn path=/trunk/; revision=1997
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y14
1 files changed, 13 insertions, 1 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index d6930b2a..d3af58b3 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -261,6 +261,18 @@ smtp_list : STRING {save_str(&current.smtphunt, $1,TRUE);}
| smtp_list STRING {save_str(&current.smtphunt, $2,TRUE);}
;
+num_list : NUMBER {
+ struct idlist *id;
+ id=save_str(&current.antispam,0,0);
+ id->val.status.num = $1;
+ }
+ | num_list NUMBER {
+ struct idlist *id;
+ id=save_str(&current.antispam,0,0);
+ id->val.status.num = $2;
+ }
+ ;
+
user_option : TO localnames HERE
| TO localnames
| IS localnames HERE
@@ -271,7 +283,7 @@ user_option : TO localnames HERE
| FOLDER folder_list
| SMTPHOST smtp_list
| SMTPADDRESS STRING {current.smtpaddress = xstrdup($2);}
- | SPAMRESPONSE NUMBER {current.antispam = $2;}
+ | SPAMRESPONSE num_list
| MDA STRING {current.mda = xstrdup($2);}
| PRECONNECT STRING {current.preconnect = xstrdup($2);}
| POSTCONNECT STRING {current.postconnect = xstrdup($2);}