commit - 5e62db7b77a24bda90360684fe44325fde4ddac6
commit + 3b767c061f9b7b08c4f20fab1017f092d540a9c7
blob - af961f8f9e2a252fb98df5ea263c1ee6f036d856
blob + 8d809bc2fa94f99a57aaf32ece6cdfab9a8d54da
--- main.c
+++ main.c
static char **blacklists = NULL;
static size_t nblacklists = 0;
static int markspam = 0;
+static int verbose = 0;
void usage(void);
void dnsbl_connect(struct osmtpd_ctx *, const char *,
int ch;
size_t i;
- while ((ch = getopt(argc, argv, "m")) != -1) {
+ while ((ch = getopt(argc, argv, "mv")) != -1) {
switch (ch) {
case 'm':
markspam = 1;
break;
+ case 'v':
+ verbose = 1;
+ break;
default:
usage();
}
return;
}
osmtpd_filter_proceed(session->ctx);
- warnx("%016"PRIx64" not listed", session->ctx->reqid);
+ if (verbose)
+ warnx("%016"PRIx64" not listed", session->ctx->reqid);
}
void