[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] [1.9][PATCH] log objectionable Message-ID in debugmode >= 1



"Jeff Grossman" <jeff@xxxxxxxxxxx> writes:

> I have no idea what the local machine is.  How can I set up DEBUG to see
> what the message id is that Leafnode is rejecting?

Euhm, sorry, not at all currently.

Here's a patch against 1.9.24.rel that allows you to see the
objectionable Message-ID: header in your log when debugmode is set
(either in the config file or by running leafnode as "leafnode -D" from
[x]inetd.conf):

Index: leafnode-1/nntpd.c
diff -u leafnode-1/nntpd.c:1.67 leafnode-1/nntpd.c:1.67.2.1
--- leafnode-1/nntpd.c:1.67	Wed Jul 10 02:25:19 2002
+++ leafnode-1/nntpd.c	Mon Jul 15 02:34:40 2002
@@ -1081,6 +1081,8 @@
 		int rc;
 		
 		havemessageid = TRUE;
+		if (debugmode)
+		    syslog(LOG_DEBUG, "debug header: %s", line);
 		if (2 != (rc = pcre_extract(line, "Message-ID:\\s+<(?:[^>]+)@([^@>]+)>\\s*$", vec, 2))
 			|| vec[1] == NULL) {
 		    ferr = TRUE, ferrstr = "Malformatted Message-ID: header.";


-- 
Matthias Andree

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list