🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Antonio Coloma Wed, 28 Jun 2000 00:00
Problem with control messages
#47150
Author: Antonio Coloma
Date: Wed, 28 Jun 2000 00:00
124 lines
3632 bytes
    Hi!

    My actual conf of inn is: Inn 2.2 Solaris 2.6.

    control.ctl file is:
-----
##      DEFAULT
all:*:*:doit=log-all

##
--------------------------------------------------------------------------

##      CHECKGROUPS MESSAGES
##
--------------------------------------------------------------------------

## Any newsgroup
checkgroups:*:*:doit=log-check

##
--------------------------------------------------------------------------

##      IHAVE/SENDME MESSAGES
##
--------------------------------------------------------------------------

ihave:*:*:drop
sendme:*:*:drop

##
--------------------------------------------------------------------------

##      SENDSYS
##
--------------------------------------------------------------------------

sendsys:*:*:log=sendsys
##
--------------------------------------------------------------------------

##      SENDUUNAME
##
--------------------------------------------------------------------------

senduuname:*:*:log=senduuname

##
--------------------------------------------------------------------------

##      VERSION
##
--------------------------------------------------------------------------

version:*:*:log=version

##
--------------------------------------------------------------------------

##      NEWGROUP/RMGROUP MESSAGES
##
--------------------------------------------------------------------------

## Default (for any group)
newgroup:*:*:doit=log-newgroup
rmgroup:*:*:doit=log-rmgroup


----

    When I post control messages to create a newgroup. it works fine,
but when I post control messages to modify the newsgroup description, I
get this messages in errlog:

---
Wed Jun 28 13:34:56 2000: control_newgroup, local.es.informatica.xml
moderated
 administrator@domain.com administrator@domain.com
/opt/news/spool/articles/cont
rol/newgroup/21, 0.0.0.0, doit=log-newgroup, 1
---
The message posted is: /opt/news/spool/articles/control/newgroup/21 :

Path: m1portdes1!je1c126wst
 From: administrator@domain.com
Newsgroups: control,local.es.informatica.xml
Subject: cmsg newgroup local.es.informatica.xml moderated
Control: newgroup local.es.informatica.xml moderated
Date: Wed, 28 Jun 00  13:38:23 +0100
Organization: MYORG
Lines: 3
Approved: administrator@domain.com
Message-ID: <962192.4303843@domain.com>
NNTP-Posting-Host: a.b.c.d
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace:  962192096 20003 172.24.25.163 (28 Jun 2000 11:34:
56 GMT)
X-Complaints-To: usenet@m1portdes1
NNTP-Posting-Date: 28 Jun 2000 11:34:56 GMT
X-Accept-Language: es
Xref: m1portdes1 control.newgroup:21


For your newsgroups file:
local.es.informatica.xml   El nuevo standard xml//\277sgml? \277html?
\277xml?
 jarlllll..

---------

The newsgroup description is not changed.
Does anybody know how to change newsgroup description with control
messages?

Thanx a lot!






Re: Problem with control messages
#47159
Author: Russ Allbery
Date: Wed, 28 Jun 2000 00:00
13 lines
1093 bytes
Antonio Coloma <acoloma@apdo.com> writes:

> The newsgroup description is not changed.  Does anybody know how to
> change newsgroup description with control messages?

INN doesn't currently support this because INN ignores any control
messages which don't result in a status change for the newsgroup.  This is
a bug and on the TODO list to fix.

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

Re: Problem with control messages
#47173
Author: IRS Agent
Date: Thu, 29 Jun 2000 00:00
65 lines
2670 bytes
Antonio Coloma wrote:


 
> ----
> 
>     When I post control messages to create a newgroup. it works fine,
> but when I post control messages to modify the newsgroup description, I
> get this messages in errlog:

To modify the description, you need to do it in 2 steps with 2 separate 
control messages.  Control header only is displayed below,

1) Control: rmgroup local.es.informatica.xml	

2) Control: newgroup local.es.informatica.xml	moderated	El nuevo standard xml//\277sgml? \277html?

That will solve your problem.
 
> ---
> Wed Jun 28 13:34:56 2000: control_newgroup, local.es.informatica.xml
> moderated
>  administrator@domain.com administrator@domain.com
> /opt/news/spool/articles/cont
> rol/newgroup/21, 0.0.0.0, doit=log-newgroup, 1
> ---
> The message posted is: /opt/news/spool/articles/control/newgroup/21 :
> 
> Path: m1portdes1!je1c126wst
>  From: administrator@domain.com
> Newsgroups: control,local.es.informatica.xml
> Subject: cmsg newgroup local.es.informatica.xml moderated
> Control: newgroup local.es.informatica.xml moderated
> Date: Wed, 28 Jun 00  13:38:23 +0100
> Organization: MYORG
> Lines: 3
> Approved: administrator@domain.com
> Message-ID: <962192.4303843@domain.com>
> NNTP-Posting-Host: a.b.c.d
> Mime-Version: 1.0
> Content-Type: text/plain; charset=iso-8859-1
> Content-Transfer-Encoding: 8bit
> X-Trace:  962192096 20003 172.24.25.163 (28 Jun 2000 11:34:
> 56 GMT)
> X-Complaints-To: usenet@m1portdes1
> NNTP-Posting-Date: 28 Jun 2000 11:34:56 GMT
> X-Accept-Language: es
> Xref: m1portdes1 control.newgroup:21
> 
> 
> For your newsgroups file:
> local.es.informatica.xml   El nuevo standard xml//\277sgml? \277html?
> \277xml?
>  jarlllll..
> 
> ---------
> 
> The newsgroup description is not changed.
> Does anybody know how to change newsgroup description with control
> messages?

See above.


Re: Problem with control messages
#47183
Author: Andreas Barth
Date: Thu, 29 Jun 2000 00:00
84 lines
3723 bytes
On Wed, 28 Jun 2000 14:05:50 +0200, Antonio Coloma wrote:
> The newsgroup description is not changed.
> Does anybody know how to change newsgroup description with control
> messages?

If you use controlchan, you can use the following "hot fix":


From: aba@muenchen.pro-bahn.de (Andreas Barth)
Message-Id: <slrn7velrm.dak.aba@aphrodite.muenchen.pro-bahn.de>
Newsgroups: news.admin.technical
Subject: Re: tagline change w/o status change
References: <slrn7vabl6.dak.aba@aphrodite.muenchen.pro-bahn.de> <yliu4pnlhe.fsf@windlord.stanford.edu>
Followup-To: 

On Sun, 3 Oct 1999 04:00:02 GMT, Russ Allbery <rra@stanford.edu> wrote:
>> And: Is this considered as a feature or a bug?
> Missing feature, really.

Ok. So it's ok to produce a patch for this. The diff is done
again the newgroup.pl from controlchan that's running here (
| # $Id: newgroup.pl,v 1.7 1998/10/06 14:36:32 news Exp $
), but should work also with newer ones.

--->---
--- newgroup.pl	Sun Oct  3 14:51:21 1999
+++ /usr/lib/news/bin/control/newgroup.pl	Sun Oct  3 15:04:45 1999
@@ -114,7 +114,7 @@
       } elsif (($oldgroup[3] ne "m") && ($modflag eq "moderated")) {
 	$status = "made moderated";
       } else {
-	$status = "no change";
+	$status = "tagline change";
       }
     } elsif (! $approved) {
       $status = "unapproved";
@@ -122,14 +122,20 @@
       $status = "created";
     }
     
-    if ($action eq "mail" && ($status !~ /(no change|unapproved)/)) {
+    if ($action eq "mail" && ($status !~ /unapproved/)) {
       open(TEMPFILE, ">$tempfile");
       print TEMPFILE ("$sender asks for $groupname\n",
 		      "to be $status.\n\n",
 		      "If this is acceptable, type:\n",
 		      "  $inn::newsbin/ctlinnd newgroup ",
 		      "$groupname $modcmd $sender\n\n",
-		      "The control message follows:\n\n");
+		      "The control message follows:\n\n")
+                           if $status !~ /tagline change/;
+      print TEMPFILE ("$sender asks for a new tagline for $groupname\n",
+		      "If this is acceptable, please change the\n",
+                      "newsgroups-file appropriate.\n\n",
+		      "The control message follows:\n\n")
+                           if $status =~ /tagline change/;
       
       $artfh = open_article($token);
       next if (!defined($artfh));
@@ -150,10 +156,10 @@
 	       "$modcmd $sender (would be $status)");
       }
     } elsif (($action eq "doit") &&
-	     ($status !~ /(no change|unapproved)/)) {
+	     ($status !~ /unapproved/)) {
       # Create the group.
       system("$inn::newsbin/ctlinnd", "-s", "newgroup",
-	     $groupname, $modcmd, $sender);
+	     $groupname, $modcmd, $sender) if $status !~ /tagline change/;
       
       # If there's a tag line, update newsgroups too.
---<---

What should be done is to mail only if there's a change in the
tagline.



Andi       
-- 
  My users get their dirty pics on the web, and use Usenet for what it was
  originally intended.                 Brian Edmonds in news.software.nntp

Re: Problem with control messages
#47185
Author: IRS Agent
Date: Thu, 29 Jun 2000 00:00
24 lines
1445 bytes
IRS Agent wrote:

> Antonio Coloma wrote:
> 
> 
>  
> > ----
> > 
> >     When I post control messages to create a newgroup. it works fine,
> > but when I post control messages to modify the newsgroup description, I
> > get this messages in errlog:
> 
> To modify the description, you need to do it in 2 steps with 2 separate 
> control messages.  Control header only is displayed below,
> 
> 1) Control: rmgroup local.es.informatica.xml	
> 
> 2) Control: newgroup local.es.informatica.xml	moderated	

>El nuevo standard xml//\277sgml? \277html?

Sorry, this line should be in the body as you originally sent it.

Re: Problem with control messages
#47207
Author: IRS Agent
Date: Fri, 30 Jun 2000 00:00
29 lines
1821 bytes
On Fri, 30 Jun 19100, Anonymous Coward belched:

*sneck* personal vanity group not approved by Kazzman

> On Thu 2494 Sep 1993, IRS Agent meowed:
> 
> > > but when I post control messages to modify the newsgroup description, I
> > > get this messages in errlog:
> > 
> > To modify the description, you need to do it in 2 steps with 2 separate 
> > control messages.  Control header only is displayed below,
> > 1) Control: rmgroup local.es.informatica.xml	
> > 2) Control: newgroup local.es.informatica.xml	moderated	

> This might work in the particular case here, but it isn't something
> that people should do in general, and particularly not for an
> active hierarchy, or if the control messages are propagated --

The group is local PLUS it is moderated.  A quick and dirty
hack is appropriate and there are backup safeguards.

> Meow!
> Chas F.

Meow,
I. A.


Re: Problem with control messages
#47208
Author: Anonymous Coward
Date: Fri, 30 Jun 2000 00:00
33 lines
2346 bytes
On Thu 2494 Sep 1993, IRS Agent meowed:

> > but when I post control messages to modify the newsgroup description, I
> > get this messages in errlog:
> 
> To modify the description, you need to do it in 2 steps with 2 separate 
> control messages.  Control header only is displayed below,
> 1) Control: rmgroup local.es.informatica.xml	
> 2) Control: newgroup local.es.informatica.xml	moderated	El nuevo standard xml//\277sgml? \277html?
> That will solve your problem.

Yahbut, it may create a new one.  The `rmgroup' command will
drop the group from the active file, and the `newgroup' command
will re-create it as if it were a brand-spankin'-new newsfroup.
With zeros in the highmark field in the active file.  Meaning
that if an article arrives, it will be assigned number 1, until
a `renumber' operation happens, provided the renumber is smart
enough to locate any existing articles.  And anyway, any new
articles that do arrive won't be seen by most newsreaders as
long as they appear at a lower article number than existing
articles.

This might work in the particular case here, but it isn't something
that people should do in general, and particularly not for an
active hierarchy, or if the control messages are propagated --
what if expire runs between the time the rmgroup is received and
the newgroup shows up?

Meow!
Chas F.


Re: Problem with control messages
#47213
Author: Antonio Coloma
Date: Fri, 30 Jun 2000 00:00
26 lines
1334 bytes
    Hi !

        Thanx Andreas for the "fix". It works fine :-) !!!


Andreas Barth wrote:

> On Wed, 28 Jun 2000 14:05:50 +0200, Antonio Coloma wrote:
> > The newsgroup description is not changed.
> > Does anybody know how to change newsgroup description with control
> > messages?
>
> If you use controlchan, you can use the following "hot fix":
>
>
> What should be done is to mail only if there's a change in the
> tagline.
>
> Andi
> --
>   My users get their dirty pics on the web, and use Usenet for what it was
>   originally intended.                 Brian Edmonds in news.software.nntp


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