Patch for moderated groups and Followup-To applied

Russ Allbery rra at stanford.edu
Sat Feb 1 21:28:26 UTC 2003


I've applied the following patch to fix the problem with moderated groups
listed in Followup-To, to both CURRENT and STABLE.

--- post.c      2003/01/19 22:56:33     1.90
+++ post.c      2003/02/01 21:23:46     1.91
@@ -1,4 +1,4 @@
-/*  $Revision: 1.90 $
+/*  $Revision: 1.91 $
 **
 **  Check article, send it to the local server.
 */
@@ -684,8 +684,7 @@ ValidNewsgroups(char *hdr, char **modgro
     if ((p = strtok(groups, NGSEPS)) == NULL)
        return "Can't parse newsgroups line";
 
-    /* Don't mail article if just checking Followup-To line. */
-    approved = HDR(HDR__APPROVED) != NULL || modgroup == NULL;
+    approved = HDR(HDR__APPROVED) != NULL;
 
     Error[0] = '\0';
     FoundOne = false;
@@ -728,7 +727,7 @@ ValidNewsgroups(char *hdr, char **modgro
            if (approved && !PERMaccessconf->allowapproved) {
                snprintf(Error, sizeof(Error),
                          "You are not allowed to approve postings");
-           } else if (!approved && !*modgroup) {
+           } else if (!approved && modgroup != NULL && !*modgroup) {
                *modgroup = xstrdup(p);
            }
            break;

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>

    Please send questions to the list rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.


More information about the inn-workers mailing list