Thread View: news.software.nntp
29 messages
29 total messages
Started by Iulius
Tue, 15 Aug 2006 17:17
Checkgroups control articles
Author: Iulius
Date: Tue, 15 Aug 2006 17:17
Date: Tue, 15 Aug 2006 17:17
34 lines
2410 bytes
2410 bytes
Hi, I have a problem with checkgroups control articles. Even though I write in « control.ctl » that I want them to be logged, they keep being sent by mail... checkgroups:*:*:drop checkgroups:cts@dragon.com:vmsnet.*:mail checkgroups:gnu@prep.ai.mit.edu:gnu.*:mail checkgroups:news@prep.ai.mit.edu:gnu.*:mail checkgroups:news@ai.mit.edu:gnu.*:mail checkgroups:group-admin@isc.org:*:verify-news.announce.newgroups=miscctl checkgroups:control@usenet-news.eu.org:fr.*:verify-control@usenet-fr.news.eu.org=miscctl checkgroups:Biosci-control-key@net.bio.net:bionet.*:verify-Biosci-control-key@net.bio.net=miscctl checkgroups:news@postgresql.org:pgsql.*:verify-news@postgresql.org [other hierarchies] I tried to put lines for « vmsnet.* » and « gnu.* » after all the other lines (in case the checkgroups articles match them) but the mail is still sent to me. Could it be that « pgsql.* », for instance, is mailed and not logged? However, checkgroups for the Big-8 don't match « pgsql.* »... Does anybody else have the same problem? Is there something wrong in my configuration? -- Iulius « -- Ils transportent une arme secrête dans un tonneau ! -- La cervoise tiède !!! -- Non, ça c'est une arme connue. » (Astérix)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Sat, 26 Aug 2006 20:05
Date: Sat, 26 Aug 2006 20:05
40 lines
2897 bytes
2897 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> I have a problem with checkgroups control articles. Even though I write
> in « control.ctl » that I want them to be logged, they keep being sent
> by mail...
> checkgroups:*:*:drop
> checkgroups:cts@dragon.com:vmsnet.*:mail
> checkgroups:gnu@prep.ai.mit.edu:gnu.*:mail
> checkgroups:news@prep.ai.mit.edu:gnu.*:mail
> checkgroups:news@ai.mit.edu:gnu.*:mail
> checkgroups:group-admin@isc.org:*:verify-news.announce.newgroups=miscctl
> checkgroups:control@usenet-news.eu.org:fr.*:verify-control@usenet-fr.news.eu.org=miscctl
> checkgroups:Biosci-control-key@net.bio.net:bionet.*:verify-Biosci-control-key@net.bio.net=miscctl
> checkgroups:news@postgresql.org:pgsql.*:verify-news@postgresql.org
> [other hierarchies]
> I tried to put lines for « vmsnet.* » and « gnu.* » after all the other
> lines (in case the checkgroups articles match them) but the mail is
> still sent to me.
> Could it be that « pgsql.* », for instance, is mailed and not logged?
> However, checkgroups for the Big-8 don't match « pgsql.* »...
No, that wouldn't be it.
I assume you have controlchan enabled, right? (I don't think the
non-controlchan control message processing was even available in 2.4.
I went over the code in 2.4 pretty thoroughly, and I can't see any way for
it to ignore the log destination that you provide for a checkgroups. It
takes everything after the '=' as the log name and passes it into the
checkgroups routine properly, and that routine only mails the output if
there's no log defined. So I don't know why you're seeing this.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Sun, 27 Aug 2006 08:52
Date: Sun, 27 Aug 2006 08:52
58 lines
3124 bytes
3124 bytes
Thanks, Russ, for having looked at that.
> I assume you have controlchan enabled, right? (I don't think the
> non-controlchan control message processing was even available in 2.4.)
What is controlchan enabling?
I see in my « inn.conf »:
#usecontrolchan: false
but the « usecontrolchan » is not documented (perhaps it is for older
versions of INN, or for a future use). Should I enable that?
Otherwise, I have in my « newsfeeds »:
controlchan!\
:!*,control*,!control.cancel\
:AC,Tc,Wnsm:/usr/lib/news/bin/controlchan
I think it is what you want.
> I went over the code in 2.4 pretty thoroughly, and I can't see any way for
> it to ignore the log destination that you provide for a checkgroups. It
> takes everything after the '=' as the log name and passes it into the
> checkgroups routine properly, and that routine only mails the output if
> there's no log defined. So I don't know why you're seeing this.
Well, I should have read the code before...
if ($action =~ /^verify-(.+)/) {
my $keyowner = $1;
if ($inn::pgpverify and $inn::pgpverify =~ /^(?:true|on|yes)$/i) {
my $pgpresult = defined &local_pgpverify ?
local_pgpverify($token, $headers, $body) : pgpverify($token);
if ($keyowner eq $pgpresult) {
$action = 'doit';
} else {
$action = '_pgpfail';
}
} else {
$action = 'mail';
}
}
So I believe a mail is sent because $inn::pgpverify is unset in my « inn.conf ».
But why should it be a parameter of « inn.conf » if « control.ctl » tells INN to
use pgpverify?
Should I enable « pgpverify »?
--
Iulius
« Sois sage, ô ma douleur, et tiens-toi plus tranquille. » (Charles Baudelaire)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Sun, 27 Aug 2006 17:23
Date: Sun, 27 Aug 2006 17:23
37 lines
2211 bytes
2211 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> What is controlchan enabling?
> I see in my « inn.conf »:
> #usecontrolchan: false
> but the « usecontrolchan » is not documented (perhaps it is for older
> versions of INN, or for a future use). Should I enable that?
No, that's left over from 2.3. I'm pretty sure that it's always enabled
for 2.4.
> Otherwise, I have in my « newsfeeds »:
> controlchan!\
> :!*,control*,!control.cancel\
> :AC,Tc,Wnsm:/usr/lib/news/bin/controlchan
> I think it is what you want.
Yup.
> So I believe a mail is sent because $inn::pgpverify is unset in my «
> inn.conf ». But why should it be a parameter of « inn.conf » if «
> control.ctl » tells INN to use pgpverify?
> Should I enable « pgpverify »?
Oh! Yes, if you have pgpverify turned off, that would do this.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Sun, 27 Aug 2006 18:35
Date: Sun, 27 Aug 2006 18:35
49 lines
2808 bytes
2808 bytes
En réponse à Russ Allbery :
>> Should I enable « pgpverify »?
>
> Oh! Yes, if you have pgpverify turned off, that would do this.
All right. I have just « xexec-ed » INN. I hope it will then work.
However, I do not understand why there are verifications even though
pgpverify is turned off (indeed, control articles which are not
signed or which are not mentioned in my « control.ctl » file are
not mailed).
Therefore, what is the use of that « pgpverify »?!?
Furthermore, I think the explanations should speak of that:
ftp://ftp.isc.org/pub/pgpcontrol/README.html
%%
Enable verification through the news system authorization system.
INN:
Use the action verify-pgp_userid (possibly appended =logfile) in control.ctl.
To enable PGP verification in addition to the normal authorization
done by control.ctl, use the action verify-pgp_userid in the fourth field.
%%
The sample test works well without that. And nowhere it is said that
we have to enable « pgpverify » (even in « control.ctl »). I reckon
it should be said near « action », at the beginning of the file.
Or another solution would be to change that default behaviour...
if ($inn::pgpverify and $inn::pgpverify =~ /^(?:true|on|yes)$/i) {
[...]
} else {
$action = 'mail';
}
Where else « pgpverify » is used? (I do not find other useful uses of that
in the whole code of INN.)
--
Iulius
« L'État, c'est moi. » (Louis XIV)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Sun, 27 Aug 2006 18:50
Date: Sun, 27 Aug 2006 18:50
39 lines
2980 bytes
2980 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> All right. I have just « xexec-ed » INN. I hope it will then work.
> However, I do not understand why there are verifications even though
> pgpverify is turned off (indeed, control articles which are not signed
> or which are not mentioned in my « control.ctl » file are not mailed).
Er, of course all the verifications that can be done without PGP are still
done. Why wouldn't you expect that?
> Therefore, what is the use of that « pgpverify »?!?
It's mostly vestigial at this point, but it keeps INN from trying to run
pgpverify and failing in strange ways when PGP isn't available on the
system. Instead, something predictable and uniform is done. There are
probably other ways to arrive at the same goal at this point, now that
it's far more normal than not to build in PGP support since there's a free
PGP implementation. When this support was originally added to INN, the
only available PGP implementation had weird licensing conditions.
> Furthermore, I think the explanations should speak of that:
> ftp://ftp.isc.org/pub/pgpcontrol/README.html
This file is hopelessly obsolete and shouldn't be used for INN; the INN
documentation is much more up to date. I've now added a disclaimer to
that effect to this file until I have a chance to update it (something
I've been trying to find time to do for a while now).
> Where else « pgpverify » is used? (I do not find other useful uses of
> that in the whole code of INN.)
This is the only place that it's used.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Mon, 28 Aug 2006 13:41
Date: Mon, 28 Aug 2006 13:41
33 lines
2443 bytes
2443 bytes
En réponse à Russ Allbery : >> Therefore, what is the use of that « pgpverify »?!? > > It's mostly vestigial at this point, but it keeps INN from trying to run > pgpverify and failing in strange ways when PGP isn't available on the > system. Instead, something predictable and uniform is done. All right. >> ftp://ftp.isc.org/pub/pgpcontrol/README.html > > This file is hopelessly obsolete and shouldn't be used for INN; the INN > documentation is much more up to date. http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html last section « Processing Newsgroup Control Messages »? I still do not find it very clear regarding « pgpverify: true », but never mind. I should have missed something. > I've now added a disclaimer to > that effect to this file until I have a chance to update it (something > I've been trying to find time to do for a while now). Thanks. -- Iulius « -- Ils devraient pourtant savoir que le sanglier c'est sacré pour nous. -- Et toi, tu as une sacrée façon de l'adorer. » (Astérix)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Mon, 28 Aug 2006 18:23
Date: Mon, 28 Aug 2006 18:23
17 lines
1935 bytes
1935 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> http://www.eyrie.org/~eagle/software/inn/docs-2.4/install.html
> last section « Processing Newsgroup Control Messages »?
> I still do not find it very clear regarding « pgpverify: true », but
> never mind. I should have missed something.
Well, it should be automatically set to true for you by the build process
if PGP was available. Hm. It may need more of a note for upgrades,
though.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 29 Aug 2006 08:49
Date: Tue, 29 Aug 2006 08:49
39 lines
2321 bytes
2321 bytes
En réponse à Russ Allbery : >> Could it be that « pgsql.* », for instance, is mailed and not logged? >> However, checkgroups for the Big-8 don't match « pgsql.* »... > > No, that wouldn't be it. There was a little problem yesterday, regarding the « it-alt.* » checkgroups <20060828194118$09f2@pegasus.linuxfan.it> posted in « it-alt.config,news.admin.hierarchies ». I do not carry that hierarchy and there is no mention of it in my « control.ctl ». However, it was loggued in « missctl »... What happened? It should have been dropped! control.ctl ----------- checkgroups:*:*:drop checkgroups:*:24hoursupport.*|adobe.*|macromedia.*:log=miscctl [...other hierarchies...] news.notice ----------- Aug 28 21:41:21 guepard controlchan[23565]: control_checkgroups, ^24hoursupport.*|^adobe.*|^macromedia.* it-alt@servidellagleba.it it-alt@servidellagleba.it @0500000000030000007C0000000000000000@, feeds.lacave.net, log=miscctl, 1 -- Iulius « -- Je suis mon cher ami, très heureux de te voir. -- C'est un alexandrin. » (Astérix)
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 29 Aug 2006 08:58
Date: Tue, 29 Aug 2006 08:58
33 lines
2790 bytes
2790 bytes
En réponse à Russ Allbery : >> I still do not find it very clear regarding « pgpverify: true », but >> never mind. I should have missed something. > > Well, it should be automatically set to true for you by the build process > if PGP was available. Hm. It may need more of a note for upgrades, > though. I assume it was an upgrade (perhaps 2.3 -> 2.4 or earlier) with a direct copy of « inn.conf » and then run « innupgrade ». I do not know what happened (I was not in charge of the news server). By the way, is there a possibility for « controlchan » to correctly handle articles in wireformat? 29/08 10:02 news@guepard ~% echo '/var/spool/news/articles/control/rmgroup/2599' | controlchan Tue Aug 29 10:06:42 2006: starting Tue Aug 29 10:06:42 2006: Broken headers in article 29/08 10:03 news@guepard ~% echo '@05000000000500000A230000000000000000@' | controlchan Tue Aug 29 10:48:21 2006: starting Tue Aug 29 10:48:21 2006: control_rmgroup, comp.dcom.lans.hyperchannel group-admin (/at/) isc.org group-admin (/at/) isc.org @05000000000500000A230000000000000000@, , doit, 1 [« (/at/) » is for spam; I am sorry for « it-alt »: I forgot to do the same thing...] -- Iulius « Pas besoin d'un grand dessin pour comprendre que les recettes du druide sont mal digérées par les Romains ! » (Astérix)
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 29 Aug 2006 11:10
Date: Tue, 29 Aug 2006 11:10
39 lines
2587 bytes
2587 bytes
> There was a little problem yesterday, regarding the « it-alt.* »
> checkgroups
> <20060828194118$09f2@pegasus.linuxfan.it> posted in
> « it-alt.config,news.admin.hierarchies ».
> I do not carry that hierarchy and there is no mention of it in my «
> control.ctl ».
In « controlchan »:
foreach (@$ctllist) {
my @ctlline = split /:/;
# 0: type 1: from@addr 2: group.* 3: action
if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
$action = $ctlline[3];
$action =~ s/\^(.+)\$/$1/;
$action =~ s/\\//g;
$hier = $ctlline[2] if $type eq 'checkgroups';
last;
}
}
Well, why is it « $type !~ /(?:new|rm)group/ » and not « $type =~ /(?:new|rm)group/ » ?
And if I put « =~ », PERL complains:
Use of uninitialized value in pattern match (m//) at /usr/lib/news/bin//controlchan line 277.
Well, in fact, « $newsgroup » seems not to be defined.
But it is « $progparams[0] » and it is not defined before the call of « ctlperm ».
I do not see well what is happening here.
Anyway, it looks as though « $ctlline[2] » is not taken into account...
--
Iulius
« Auri sacra fames ! » (Virgile)
Re: Checkgroups control articles
Author: F. Senault
Date: Tue, 29 Aug 2006 12:58
Date: Tue, 29 Aug 2006 12:58
31 lines
2707 bytes
2707 bytes
Le 29 août à 13:10, Iulius a écrit :
> if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
> ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
>
> Well, why is it « $type !~ /(?:new|rm)group/ » and not « $type =~ /(?:new|rm)group/ » ?
> And if I put « =~ », PERL complains:
> Use of uninitialized value in pattern match (m//) at /usr/lib/news/bin//controlchan line 277.
I'd guess it's a shortcut - if it isn't a rm/newgroup, the newsgroup is
undefined (you can't guess a newsgroup or a hierarchy from a checkgroups
message), so you can't test it. The part before the or catches it and
ensures the test against $newsgroup isn't executed.
> Well, in fact, « $newsgroup » seems not to be defined.
>
> But it is « $progparams[0] » and it is not defined before the call of « ctlperm ».
> I do not see well what is happening here.
>
> Anyway, it looks as though « $ctlline[2] » is not taken into account...
Yeah. Sounds logical to me. How can you guess the newsgroup of a
checkgroups message ? Taking the first group in the newsgroups list is
a bit hazardous...
Fred
--
The quality of life and the world in general become much better if we
start chopping off spammers' fingers at a rate of say, 1 finger per
message, with bonus pre-amputation limb flattening for html or other
"prettification" mail. (Peter N. M. Hansteen in the SDM)
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 29 Aug 2006 16:54
Date: Tue, 29 Aug 2006 16:54
50 lines
3227 bytes
3227 bytes
En réponse à F. Senault :
>> if ($type =~ /$ctlline[0]/ and $sender =~ /$ctlline[1]/i and
>> ($type !~ /(?:new|rm)group/ or $newsgroup =~ /$ctlline[2]/)) {
>>
>> Well, why is it « $type !~ /(?:new|rm)group/ » and not « $type =~ /(?:new|rm)group/ » ?
>> And if I put « =~ », PERL complains:
>> Use of uninitialized value in pattern match (m//) at /usr/lib/news/bin//controlchan line 277.
>
> I'd guess it's a shortcut - if it isn't a rm/newgroup, the newsgroup is
> undefined (you can't guess a newsgroup or a hierarchy from a checkgroups
> message), so you can't test it.
Perhaps with checking $ctlline[2].
Here, it is: « it-alt.config,news.admin.hierarchies »!
Then if I put
checkgroups:*:it-alt.*:mail
I expect it will be found in $ctlline[2] !
>> Anyway, it looks as though « $ctlline[2] » is not taken into account...
>
> Yeah. Sounds logical to me. How can you guess the newsgroup of a
> checkgroups message ? Taking the first group in the newsgroups list is
> a bit hazardous...
No, nothing of that sort (think of the Big-8 checkgroups for instance).
But, speaking of that, I do not understand why the « control.ctl » by default
says:
checkgroups:group-admin[!!]isc.org:comp.*|humanities.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:verify-news.announce.newgroups
and all the others have a list of groups:
checkgroups:control[!!]usenet-fr.news.eu.org:fr.*:verify-control@usenet-fr.news.eu.org
If they are useless, why are there here?
And how can I filter checkgroups of other hierarchies if the third argument
is never read (and I do not want to use the second unknown one)?
I think there is a problem here (either in the sample « control.ctl » or in
the code of « controlchan » regarding checkgroups).
--
Iulius
« Auri sacra fames ! » (Virgile)
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 29 Aug 2006 20:12
Date: Tue, 29 Aug 2006 20:12
23 lines
1951 bytes
1951 bytes
En réponse à Iulius : > Perhaps with checking $ctlline[2]. > Here, it is: « it-alt.config,news.admin.hierarchies »! man control.ctl --------------- WARNINGS The third argument for a line affecting checkgroups does not affect whether the line matches. It is only used after a matching line is found, to filter out which newsgroups listed in the checkgroups will be processed. :( Isn't there any way to use $ctlline[2] for that third argument? Is something wrong with some hierarchies? -- Iulius « Ils se souviendront de la marmite de poisson ! » (Astérix)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Tue, 29 Aug 2006 22:42
Date: Tue, 29 Aug 2006 22:42
33 lines
2338 bytes
2338 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> What happened?
> It should have been dropped!
> control.ctl
> -----------
> checkgroups:*:*:drop
> checkgroups:*:24hoursupport.*|adobe.*|macromedia.*:log=miscctl
See the control.ctl man page:
WARNINGS
The third argument for a line affecting checkgroups does not affect
whether the line matches. It is only used after a matching line is
found, to filter out which newsgroups listed in the checkgroups will be
processed. This means that a line like:
checkgroups:*:*binaries*:drop
will cause all checkgroups control messages to be dropped unless they
match a line after this one in control.ctl, not just ignore newsgroups
containing "binaries" in the name. The general rule is to never use
"*" in the second field for a line matching checkgroups messages.
There is unfortunately no way to do what the author of a line like the
above probably intended to do (yet).
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Russ Allbery
Date: Tue, 29 Aug 2006 22:43
Date: Tue, 29 Aug 2006 22:43
23 lines
2051 bytes
2051 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> man control.ctl
> ---------------
> WARNINGS
> The third argument for a line affecting checkgroups does not affect
> whether the line matches. It is only used after a matching line is found,
> to filter out which newsgroups listed in the checkgroups will be processed.
> :(
> Isn't there any way to use $ctlline[2] for that third argument?
No, because in order to do that you have to parse the entire body of the
message. It's theoretically possible with a significant restructuring of
the code, but it's not how it works right now.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Russ Allbery
Date: Tue, 29 Aug 2006 22:46
Date: Tue, 29 Aug 2006 22:46
15 lines
1966 bytes
1966 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> By the way, is there a possibility for « controlchan » to correctly
> handle articles in wireformat?
It's a possibility if someone patches the code to do it. It requires a
bit of logic in parse_article to figure out what the line ending is and
then do the appropriate thing. I think that dot escaping doesn't matter,
since it's not a valid newsgroup.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Wed, 30 Aug 2006 07:24
Date: Wed, 30 Aug 2006 07:24
21 lines
2134 bytes
2134 bytes
En réponse à Russ Allbery :
>> By the way, is there a possibility for « controlchan » to correctly
>> handle articles in wireformat?
>
> It's a possibility if someone patches the code to do it. It requires a
> bit of logic in parse_article to figure out what the line ending is and
> then do the appropriate thing. I think that dot escaping doesn't matter,
> since it's not a valid newsgroup.
while (<$artfh>) {
#chop;
s/\r?\n$//;
last if /^$/;
[...]
works great.
--
Iulius
« Nam et ipsa scientia potestas est. » (Francis Bacon)
Re: Checkgroups control articles
Author: Iulius
Date: Wed, 30 Aug 2006 07:58
Date: Wed, 30 Aug 2006 07:58
22 lines
1863 bytes
1863 bytes
En réponse à Russ Allbery :
> See the control.ctl man page:
Yes, thanks, Russ.
I have just noticed an inexactitude in that page:
%%
verify-*
If no logging is specified (with =file as mentioned below), notification
of successful newgroup and rmgroup control messages and the output of checkgroups
messages will be mailed to the news administrator.
%%
I do not think so, according to the code of controlchan.
It does a « doit ».
If we want to have a mail, we have to put « =mail ».
--
Iulius
« Vti, non abuti. »
Re: Checkgroups control articles
Author: Dr.Ruud
Date: Wed, 30 Aug 2006 12:28
Date: Wed, 30 Aug 2006 12:28
32 lines
2137 bytes
2137 bytes
Iulius schreef:
> Russ Allbery:
>> ???:
>>> By the way, is there a possibility for « controlchan » to correctly
>>> handle articles in wireformat?
>>
>> It's a possibility if someone patches the code to do it. It
>> requires a bit of logic in parse_article to figure out what the line
>> ending is and then do the appropriate thing. I think that dot
>> escaping doesn't matter, since it's not a valid newsgroup.
>
> while (<$artfh>) {
> #chop;
> s/\r?\n$//;
More generally:
s/\s+$//; # chomp+
> last if /^$/;
> [...]
>
> works great.
--
Affijn, Ruud
"Gewoon is een tijger."
Re: Checkgroups control articles
Author: Russ Allbery
Date: Wed, 30 Aug 2006 18:05
Date: Wed, 30 Aug 2006 18:05
23 lines
2198 bytes
2198 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> En réponse à Russ Allbery :
>> It's a possibility if someone patches the code to do it. It requires a
>> bit of logic in parse_article to figure out what the line ending is and
>> then do the appropriate thing. I think that dot escaping doesn't
>> matter, since it's not a valid newsgroup.
> while (<$artfh>) {
> #chop;
> s/\r?\n$//;
> last if /^$/;
> [...]
> works great.
Hm, yeah, it would, wouldn't it. I was making that too hard. Committed.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Russ Allbery
Date: Wed, 30 Aug 2006 18:13
Date: Wed, 30 Aug 2006 18:13
23 lines
2053 bytes
2053 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> I have just noticed an inexactitude in that page:
> %%
> verify-*
> If no logging is specified (with =file as mentioned below), notification
> of successful newgroup and rmgroup control messages and the output of checkgroups
> messages will be mailed to the news administrator.
> %%
> I do not think so, according to the code of controlchan.
> It does a « doit ».
> If we want to have a mail, we have to put « =mail ».
Thanks, fixed in Subversion and also in the copies of the documentation on
my web site.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Thu, 31 Aug 2006 09:23
Date: Thu, 31 Aug 2006 09:23
40 lines
2624 bytes
2624 bytes
En réponse à Russ Allbery :
>> I do not think so, according to the code of controlchan.
>> It does a « doit ».
>> If we want to have a mail, we have to put « =mail ».
>
> Thanks, fixed in Subversion and also in the copies of the documentation on
> my web site.
Thanks.
Just a little problem I wish to say: regarding the creation of « soc.men.moderated »
yesterday, I had the following error.
Use of uninitialized value in concatenation (.) or string at /usr/lib/news/bin/controlchan line 315.
It is there:
sub logger {
my ($logfile, $message, $headers, $body) = @_;
if ($logfile eq 'mail') {
my $mail = sendmail($message);
print $mail map { s/^~/~~/; "$_\n" } @$headers;
-----> print $mail "$_\n" . join ('', map { s/^~/~~/; "$_\n" } @$body)
if $body;
close $mail or logdie("Cannot send mail: $!");
return;
}
It is the first time I have used « =mail » so I do not know whether it happens
all the time.
However, the group was well created and I received a mail so it is not blocking.
Just a warning.
--
Iulius
« L'amour, c'est comme les maths : ça commence par un Bézout et ça finit par un Gauß. »
Re: Checkgroups control articles
Author: Iulius
Date: Thu, 31 Aug 2006 21:32
Date: Thu, 31 Aug 2006 21:32
26 lines
2167 bytes
2167 bytes
En réponse à Russ Allbery :
>> %%
>> verify-*
>> If no logging is specified (with =file as mentioned below), notification
>> of successful newgroup and rmgroup control messages and the output of checkgroups
>> messages will be mailed to the news administrator.
>> %%
>
> Thanks, fixed in Subversion and also in the copies of the documentation on
> my web site.
And to be more accurate, I think the code of « newgroup.pl » and « rmgroup.pl »
should be changed here:
logger($log, "newgroup $groupname $modcmd $status $sender",
$headers, $body) if $log;
--> if (($log) && ($status ne 'no change'));
Otherwise, we receive « no change » mails with no interest...
--
Iulius
« Felix qui potuit rerum cognoscere causas. » (Virgile)
Re: Checkgroups control articles
Author: F. Senault
Date: Tue, 05 Sep 2006 00:40
Date: Tue, 05 Sep 2006 00:40
20 lines
2118 bytes
2118 bytes
Le 26 août 2006 à 22:05, Russ Allbery a écrit : > I assume you have controlchan enabled, right? (I don't think the > non-controlchan control message processing was even available in 2.4. On a tangential note, my server (a one week old -CURRENT) has processed the last batch of control messages from the Big8 tonight, and it made some ruckus in the logfiles. It looks like it's reloading the newsfeeds file in rapid succession for each control message, ending with innfeed processes fighting over locks. Is that the normal result ? (It didn't do any harm, except I think about some 30 seconds of interrupted feeding.) Fred -- Bien recu Tous les messages Ils disent qu'ils ont compris Qu'il n'y a plus le choix Que l'esprit qui souffle Guidera leurs pas Qu'arrivent les derniers temps où Nous pourrons parler Alors soyons désinvoltes N'ayons l'air de rien (Noir Désir, Tostaky)
Re: Checkgroups control articles
Author: Russ Allbery
Date: Tue, 05 Sep 2006 03:45
Date: Tue, 05 Sep 2006 03:45
18 lines
1844 bytes
1844 bytes
F Senault <fred@lacave.net> writes:
> On a tangential note, my server (a one week old -CURRENT) has processed
> the last batch of control messages from the Big8 tonight, and it made
> some ruckus in the logfiles. It looks like it's reloading the newsfeeds
> file in rapid succession for each control message, ending with innfeed
> processes fighting over locks.
> Is that the normal result ?
Yeah, right now it is. I should probably space Big Eight control messages
out farther.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Checkgroups control articles
Author: Iulius
Date: Tue, 05 Sep 2006 08:51
Date: Tue, 05 Sep 2006 08:51
30 lines
2249 bytes
2249 bytes
En réponse à Russ Allbery : >> Is that the normal result ? > > Yeah, right now it is. I should probably space Big Eight control messages > out farther. Yes, it should be a great idea (sleep 30...). As far as my news server is concerned, I received: Sep 4 22:00:03 -> one rmgroup Sep 4 22:00:04 -> four Sep 4 22:00:05 -> three Sep 4 22:00:06 -> three Sep 4 22:00:07 -> one which is a lot... And after that, it takes some time to reopen everything (during one minute, I have « remote MODE STREAM failed », « cxnsleep transfer permission denied », « spooling no active connections », « cxnsleep connect: No route to host », etc.). Furthermore, « innfeed-dropped.Axxxxxx » are created and I then have to manually procbatch them... -- Iulius « -- Debout paresseux ! Le coq a déjà salué le soleil levant ! -- Ben il n'a plus besoin de moi alors... laissez-moi dormir barbares ! » (Astérix)
Re: Checkgroups control articles
Author: F. Senault
Date: Tue, 05 Sep 2006 09:55
Date: Tue, 05 Sep 2006 09:55
28 lines
2533 bytes
2533 bytes
Le 5 septembre 2006 à 05:45, Russ Allbery a écrit : > F Senault <fred@lacave.net> writes: > >> On a tangential note, my server (a one week old -CURRENT) has processed >> the last batch of control messages from the Big8 tonight, and it made >> some ruckus in the logfiles. It looks like it's reloading the newsfeeds >> file in rapid succession for each control message, ending with innfeed >> processes fighting over locks. > >> Is that the normal result ? > > Yeah, right now it is. I should probably space Big Eight control messages > out farther. On the contrary, it would we interesting to find a way to process those messages as quick as possible with only one reload. Maybe introduce a small delay in controlchan and try to throttle / restart if more than one message is spooled. I'll try to see if it's doable. Fred -- She's less than sure if her heart has come to stay in San Jose And her neverborn child still haunts her As she speeds down the freeway As she tries her luck with the traffic police Out of boredom more than spite She never finds no trouble, she tries too hard (Loyd Cole, Rattlesnake)
Re: Checkgroups control articles
Author: F. Senault
Date: Tue, 05 Sep 2006 11:01
Date: Tue, 05 Sep 2006 11:01
23 lines
2199 bytes
2199 bytes
Le 5 septembre 2006 à 11:55, F. Senault a écrit : > I'll try to see if it's doable. It was easier than I thought. I've made a patch there : http://news.lacave.net/inn/controlchan.diff I played a bit with it, and it seems to work quite well : http://news.lacave.net/inn/controlchan.log Any thoughts on it ? There's one knob that should be user modifiable (the delay of the processing), but I'm not sure where I should put that... Fred PS : Ungh. Not enough coffee, I can't seem to find my words. -- Did you happen to catch Or did it happen so fast What you thought would always last Has passed you by Is everything speeding up Or am I slowing down I'm just spinning around And i don't know why All the pieces don't fit (Nine Inch Nails, Where Is Everybody)
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