[leafnode-list] groupinfo has lost some moderated flags
Matthias Andree
matthias.andree at gmx.de
Wed Sep 14 10:22:09 CEST 2005
This is the promised patch:
Wed Sep 14 10:20:48 CEST 2005 Matthias Andree <matthias.andree at gmx.de>
* Properly log mailto() result.
diff -rN -u old-leafnode-2/nntpd.c new-leafnode-2/nntpd.c
--- old-leafnode-2/nntpd.c 2005-09-14 10:21:17.000000000 +0200
+++ new-leafnode-2/nntpd.c 2005-09-14 10:21:17.000000000 +0200
@@ -1543,10 +1543,14 @@
nntpprintf("503 file open error caught at %s:%lu", __FILE__,
(unsigned long)__LINE__);
} else {
- if (mailto(moderator, fd)) {
+ int mrc = mailto(moderator, fd);
+ if (mrc) {
+ ln_log(LNLOG_SERR, LNLOG_CARTICLE,
+ "message %s, ID <%s>: mailing to moderator <%s> failed (error #%d)", inname,
+ mid, moderator, mrc);
nntpprintf("503 posting to moderator <%s> failed: %m", moderator);
} else {
- ln_log(LNLOG_SDEBUG, LNLOG_CARTICLE,
+ ln_log(LNLOG_SINFO, LNLOG_CARTICLE,
"message %s, ID <%s> mailed to moderator <%s>", inname,
mid, moderator);
nntpprintf("240 Article mailed to moderator <%s>", moderator);
More information about the leafnode-list
mailing list