aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-03-06 04:17:51 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-03-06 04:17:51 +0000
commit0aa7e4307aae2252986fb0e440461642c833a677 (patch)
treed78476e351bd6786565d3890c8e2428737c5b7a9 /fetchmail.c
parentc3cbff53c487f64506d9d88f88d16da68fbd0323 (diff)
downloadfetchmail-0aa7e4307aae2252986fb0e440461642c833a677.tar.gz
fetchmail-0aa7e4307aae2252986fb0e440461642c833a677.tar.bz2
fetchmail-0aa7e4307aae2252986fb0e440461642c833a677.zip
Configurable antispam response.
svn path=/trunk/; revision=1689
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 316cd3c5..0f187c68 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -655,6 +655,7 @@ static int load_params(int argc, char **argv, int optind)
memset(&def_opts, '\0', sizeof(struct query));
def_opts.smtp_socket = -1;
def_opts.smtpaddress = (char *)0;
+ def_opts.antispam = 571;
def_opts.server.protocol = P_AUTO;
def_opts.server.timeout = CLIENT_TIMEOUT;
@@ -1107,6 +1108,11 @@ void dump_params (struct query *ctl)
printf(" Host part of MAIL FROM line will be %s\n",
ctl->smtpaddress);
}
+ if (ctl->antispam != -1)
+ printf(" Listener SMTP reponse %d will be treated as a spam block\n",
+ ctl->antispam);
+ else if (outlevel == O_VERBOSE)
+ printf(" Spam-blocking disabled\n");
if (ctl->preconnect)
printf(" Server connection will be brought up with '%s.'\n",
visbuf(ctl->preconnect));