🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Jonathan I. Kamens Thu, 12 Dec 1996 00:00
INN 1.5 inews: don't print "article would be mailed" incorrectly
#13244
Author: Jonathan I. Kamens
Date: Thu, 12 Dec 1996 00:00
43 lines
1699 bytes
(Posted and mailed as shown in the header.)

INN 1.5's inews frontend shouldn't print the "article would be mailed"
message in "Dump" mode if the article has been approved, since in fact
it would *not* be mailed -- it would be posted to the server, if it
were being posted rather than dumped.

Here's a patch:

--- inews.c	1996/12/12 16:36:59	1.1.1.1
+++ inews.c	1996/12/12 20:27:22
@@ -990,15 +990,16 @@
 	case NF_FLAG_OK:
 	    break;
 	case NF_FLAG_MODERATED:
-	    if (Dump)
-		(void)fprintf(stderr,
-			"%s is moderated -- article would be mailed\n",
-			group);
-	    else if (!approved) {
-		mailed = MailArticle(group, article);
-		DISPOSE(DDend(h));
-		QuitServer(mailed ? 0 : 1);
-	    }
+	    if (!approved)
+		if (Dump)
+		    (void)fprintf(stderr,
+				"%s is moderated -- article would be mailed\n",
+				  group);
+		else {
+		    mailed = MailArticle(group, article);
+		    DISPOSE(DDend(h));
+		    QuitServer(mailed ? 0 : 1);
+		}
 	    break;
 	case NF_FLAG_IGNORE:
 	case NF_FLAG_NOLOCAL:

-- 
Jonathan Kamens  |  OpenVision Technologies, Inc.  |   jik@cam.ov.com

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads