Subject: INN 1.5 inews: don't print "article would be mailed" incorrectly

From: [email-masked] (Jonathan I. Kamens)
Date: 12 Dec 1996 20:32:00 GMT

(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.  |   [email-masked]