summaryrefslogtreecommitdiff
path: root/libexec/spamd
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2008-07-11 14:53:33 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2008-07-11 14:53:33 +0000
commit92b8e37ba806c229de6f5047234358289fe6d826 (patch)
treee183b0b9c71d9da5e913d170171b89f06e251db4 /libexec/spamd
parentc71d3c8008b16aa5a142e08ca21c3658b1ce00f2 (diff)
write a syslog debug message when a new GREY or TRAPPED entry is added
to the database. ok beck@
Diffstat (limited to 'libexec/spamd')
-rw-r--r--libexec/spamd/grey.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c
index f861b6f2e50..4e565462fa9 100644
--- a/libexec/spamd/grey.c
+++ b/libexec/spamd/grey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: grey.c,v 1.42 2008/07/11 01:40:50 phessler Exp $ */
+/* $OpenBSD: grey.c,v 1.43 2008/07/11 14:53:32 reyk Exp $ */
/*
* Copyright (c) 2004-2006 Bob Beck. All rights reserved.
@@ -740,7 +740,7 @@ twupdate(char *dbname, char *what, char *ip, char *source, char *expires)
fprintf(stderr, "added %s %s\n",
spamtrap ? "trap entry for" : "", ip);
syslog_r(LOG_DEBUG, &sdata,
- "New %s from %s for %s, expires %s", what, source, ip,
+ "new %s from %s for %s, expires %s", what, source, ip,
expires);
} else {
/* existing entry */
@@ -862,6 +862,9 @@ greyupdate(char *dbname, char *helo, char *ip, char *from, char *to, int sync,
if (debug)
fprintf(stderr, "added %s %s\n",
spamtrap ? "greytrap entry for" : "", lookup);
+ syslog_r(LOG_DEBUG, &sdata,
+ "new %sentry %s from %s to %s, helo %s",
+ spamtrap ? "greytrap " : "", ip, from, to, helo);
} else {
/* existing entry */
if (dbd.size != sizeof(gd)) {