diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-07-20 17:48:01 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-07-20 17:48:01 +0000 |
commit | 2b4651b3546053c71d5566ab2f8b943a43de2354 (patch) | |
tree | da458c2e6d4d9b469e754c83d4e28fc1600efd3f /options.c | |
parent | fe13f5844212ba65b0e172ac4087136a36240e44 (diff) | |
download | fetchmail-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.c | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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); |