From 2b4651b3546053c71d5566ab2f8b943a43de2354 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 20 Jul 1998 17:48:01 +0000 Subject: Can specify multiple spam-blocks now. svn path=/trunk/; revision=1997 --- options.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index 892e0f3e..94595e30 100644 --- a/options.c +++ b/options.c @@ -426,8 +426,16 @@ struct query *ctl; /* option record to be initialized */ break; case 'Z': case LA_ANTISPAM: - c = xatoi(optarg, &errflag); - ctl->antispam = NUM_VALUE(c); + strcpy(buf, optarg); + cp = strtok(buf, ","); + do { + struct idlist *idp = save_str(&ctl->antispam, NULL, 0);; + + idp->val.status.num = atoi(cp); + } while + ((cp = strtok((char *)NULL, ","))); + free(buf); + break; case 'b': case LA_BATCHLIMIT: c = xatoi(optarg, &errflag); @@ -543,7 +551,7 @@ struct query *ctl; /* option record to be initialized */ #endif /* NET_SECURITY */ fputs(" -S, --smtphost set SMTP forwarding host\n", stderr); fputs(" -D, --smtpaddress set SMTP delivery domain to use\n", stderr); - fputs(" -Z, --antispam, set antispam response value\n", stderr); + fputs(" -Z, --antispam, set antispam response values\n", stderr); fputs(" -b, --batchlimit set batch limit for SMTP connections\n", stderr); fputs(" -B, --fetchlimit set fetch limit for server connections\n", stderr); fputs(" -e, --expunge set max deletions between expunges\n", stderr); -- cgit v1.2.3