aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
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 /options.c
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 'options.c')
-rw-r--r--options.c14
1 files changed, 11 insertions, 3 deletions
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);