aboutsummaryrefslogtreecommitdiffstats
path: root/rcfile_y.y
diff options
context:
space:
mode:
Diffstat (limited to 'rcfile_y.y')
-rw-r--r--rcfile_y.y7
1 files changed, 5 insertions, 2 deletions
diff --git a/rcfile_y.y b/rcfile_y.y
index 110e8081..68d61c7e 100644
--- a/rcfile_y.y
+++ b/rcfile_y.y
@@ -64,7 +64,7 @@ extern char * yytext;
%token DEFAULTS POLL SKIP VIA AKA LOCALDOMAINS PROTOCOL
%token AUTHENTICATE TIMEOUT KPOP KERBEROS4 KERBEROS5 KERBEROS
%token ENVELOPE QVIRTUAL USERNAME PASSWORD FOLDER SMTPHOST MDA SMTPADDRESS
-%token PRECONNECT POSTCONNECT LIMIT
+%token SPAMRESPONSE PRECONNECT POSTCONNECT LIMIT
%token IS HERE THERE TO MAP WILDCARD
%token BATCHLIMIT FETCHLIMIT EXPUNGE
%token SET LOGFILE DAEMON SYSLOG INVISIBLE NETSEC INTERFACE MONITOR
@@ -270,6 +270,7 @@ user_option : TO localnames HERE
| FOLDER folder_list
| SMTPHOST smtp_list
| SMTPADDRESS STRING {current.smtpaddress = xstrdup($2);}
+ | SPAMRESPONSE NUMBER {current.antispam = $2;}
| MDA STRING {current.mda = xstrdup($2);}
| PRECONNECT STRING {current.preconnect = xstrdup($2);}
| POSTCONNECT STRING {current.postconnect = xstrdup($2);}
@@ -486,7 +487,8 @@ static void record_current(void)
if (cmd_opts.smtphunt)
current.smtphunt = cmd_opts.smtphunt;
FLAG_FORCE(mda);
- FLAG_FORCE(smtpaddress);
+ FLAG_FORCE(smtpaddress);
+ FLAG_FORCE(antispam);
FLAG_FORCE(preconnect);
FLAG_FORCE(postconnect);
@@ -547,6 +549,7 @@ void optmerge(struct query *h2, struct query *h1)
FLAG_MERGE(password);
FLAG_MERGE(mda);
FLAG_MERGE(smtpaddress);
+ FLAG_MERGE(antispam);
FLAG_MERGE(preconnect);
FLAG_MERGE(keep);