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

Re: [leafnode-list] groupinfo has lost some moderated flags



This is the promised patch:

Wed Sep 14 10:20:48 CEST 2005  Matthias Andree <matthias.andree@xxxxxx>
  * 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);

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/