[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] [2.0][PATCH] log objected-to Message-ID
Jeff Grossman schrieb am Sonntag, den 14. Juli 2002:
> Thanks for the patch, but I am running 2.0b8_ma10pre3.3.
Please apologize. Here's a patch for 2.0b8_ma10pre3.3, followed by a
patch for the current snapshot.
It will mirror the Message-ID message in the 441 message, and if NNTP
logging (debugmode=128) is enabled, also in the syslog.
To use: save this mail body to a file, launch your favourite text editor
that must leave leading and trailing tabs and spaces alone to delete the
patch that does NOT suit you version, then apply.
Patch for 2.0b8_ma10pre3.3:
--- nntpd.c.old Mon Jul 15 11:12:10 2002
+++ nntpd.c Mon Jul 15 11:11:50 2002
@@ -1487,7 +1487,7 @@ dopost(void)
struct stat st;
if (!validate_messageid(mid)) {
- nntpprintf("441 Invalid Message-ID: header, article not posted");
+ nntpprintf("441 Invalid header \"Message-ID: %s\", article not posted", mid);
log_unlink(inname);
goto cleanup;
}
Patch for current snapshot:
diff -u -r1.95 -r1.96
--- nntpd.c.old 2002/07/15 02:58:54 1.95
+++ nntpd.c 2002/07/15 09:18:56 1.96
@@ -1510,7 +1510,7 @@
struct stat st;
if (!validate_messageid(mid)) {
- nntpprintf("441 Invalid Message-ID: header, article not posted");
+ nntpprintf("441 Invalid header \"Message-ID: %s\", article not posted", mid);
log_unlink(inname, 0);
goto cleanup;
}
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list