Thread View: news.software.nntp
9 messages
9 total messages
Started by John F. Morse
Wed, 05 Jul 2006 13:29
expire.ctl
Author: John F. Morse
Date: Wed, 05 Jul 2006 13:29
Date: Wed, 05 Jul 2006 13:29
57 lines
3220 bytes
3220 bytes
Remembering a past goof when a bad configuration caused the expiration of many thousand local articles, I figured I better run this by the experts before I try it. My expire.ctl presently has the following two uncommented lines: /remember/:10 *:A:never:never:never Since I started testing sucking groups from USENET, I want to expire them in about 16 days. That allows anyone to read two weeks' worth, plus the weekends. If they can't get to the groups fast enough, they can always subscribe to them on their own ISP. I have five local groups that I want to keep indefinitely. I'll refer to them as one, two, three, four, and five below. I also have a local test group that I'd like to expire within 5 days, as well as expiring control.cancel in about the same period. The /remember/:10 should take care of any late arrivals if I set inn.conf's artcutoff back to 10 from 0, which I used during a pullnews suck from my old RumorMill server. Right now I'm feeding this INN server via stream from a RumorMill server, which is pulling groups from one of my ISPs. This RumorMill server has its "datebounds" configured to cutoff articles older than two days, so it is doing the rejecting. Now, trying to figure out the correct order, I read in expire.ctl(5): "The order of the file is significant, and the last matching entry will be used." With that in mind, how does the following look (BTW, that third paragraph of the Description in expire.ctl(5) has a typo in the first word, which should be "Blank" and not "Black"): *:A:16:16:6 test,control.cancel:A:5:5:5 one,two,three,four,five:A:never:never:never I am presuming the wildmat will allow the comma-separated list of groups? Is the above in the correct order so I won't accidentally wipe out thousands of keeper articles? Would there be a better way to state my intentions, possibly using the bang to negate something? Could control.cancel be designated as control.* using the wildcard, or simply control*, and if so, would its use harm the other control groups? TIA, -- John
Re: expire.ctl
Author: Iulius
Date: Wed, 05 Jul 2006 15:36
Date: Wed, 05 Jul 2006 15:36
97 lines
4327 bytes
4327 bytes
En réponse à John F. Morse :
> Remembering a past goof when a bad configuration caused the expiration
> of many thousand local articles, I figured I better run this by the
> experts before I try it.
That's bad, all the more there is no way to recover them after expire
has come.
> /remember/:10
man expire.ctl
%
The first format specifies how long to keep history entries for articles
that aren't present in the news spool. These are articles that have either
already expired, or articles which the server rejected (when remembertrash
is set to true in inn.conf). There should be one and only one line in this
format, which looks like:
/remember/:<days>
where <days> is a decimal number that specifies the minimum number of days
a history record for a given message ID is retained, regardless of whether
the article is present in the spool. (History entries for articles still present
in the spool are always retained.)
The primary reason to retain a record of old articles is in case a peer offers
old articles that were previously accepted but have already expired. Without
a history record for such articles, the server would accept the article again
and readers would see duplicate articles. Articles older than a certain number
of days won't be accepted by the server at all (see artcutoff in inn.conf(5)
and the -c flag in innd(8)), and this setting should probably match that
time period (10 days by default) to ensure that the server never accepts duplicates.
%
> *:A:never:never:never
Articles
There is no expire.
> *:A:16:16:6
> test,control.cancel:A:5:5:5
> one,two,three,four,five:A:never:never:never
*:A:16:16:16 (I think it is a typo)
> I am presuming the wildmat will allow the comma-separated list of groups?
Yes: <pattern> is a uwildmat(3)-style pattern, specifying the newsgroups to
which the line is applied. Like in « newsfeeds » file, commas can be used.
By the way, you can also check this with:
inncheck -a -v -pedantic
and see it does not complain.
> Is the above in the correct order so I won't accidentally wipe out
> thousands of keeper articles?
That is fine.
> Would there be a better way to state my
> intentions, possibly using the bang to negate something?
Since the three lines have different expire time, you cannot state it with
less than three lines!
> Could control.cancel be designated as control.* using the wildcard, or
> simply control*, and if so, would its use harm the other control groups?
If you say « control* », every control group will expire within five days.
You can do that if you want (since control groups are not for readers but
for news servers).
By the way, I use:
/remember/:5
*:U:1:16:31
*:M:1:31:31
the-most-read-hierarchies-in-my-news-server:A:1:31:31 (or 62)
*.test:A:1:5:5
*.announce*:A:1:62:62
*.annonce*:A:1:62:62
control.*:A:1:5:5 (since I do not have « control », but only subgroups)
--
Iulius
« -- Vous croyez qu'on s'est fait rouler, chef ?
-- P'têt ben qu'oui, p'têt ben qu'non... » (Astérix)
Re: expire.ctl
Author: Jeffrey M. Vinocur
Date: Thu, 06 Jul 2006 02:18
Date: Thu, 06 Jul 2006 02:18
33 lines
1999 bytes
1999 bytes
In article <O8Pqg.95539$mF2.27932@bgtnsc04-news.ops.worldnet.att.net>, John F. Morse <xanadu.bbs@invalid.net> wrote: >Remembering a past goof when a bad configuration caused the expiration >of many thousand local articles, I figured I better run this by the >experts before I try it. Well, you could make a backup first! >The /remember/:10 should take care of any late arrivals if I set >inn.conf's artcutoff back to 10 from 0, which I used during a pullnews >suck from my old RumorMill server. Yes. >third paragraph of the Description in expire.ctl(5) has a typo in the >first word, which should be "Blank" and not "Black"): Thanks, fixed. >*:A:16:16:6 >test,control.cancel:A:5:5:5 >one,two,three,four,five:A:never:never:never You have the general idea of the ordering right. I've actually never tried a comma-separated list myself, but it ought to work... -- Jeffrey M. Vinocur jeff@litech.org
Re: expire.ctl
Author: John F. Morse
Date: Thu, 06 Jul 2006 05:11
Date: Thu, 06 Jul 2006 05:11
72 lines
3427 bytes
3427 bytes
Jeffrey M. Vinocur wrote: >In article <O8Pqg.95539$mF2.27932@bgtnsc04-news.ops.worldnet.att.net>, >John F. Morse <xanadu.bbs@invalid.net> wrote: > > >>Remembering a past goof when a bad configuration caused the expiration >>of many thousand local articles, I figured I better run this by the >>experts before I try it. >> >> > >Well, you could make a backup first! > > Heh. The "news7" server is a "backup," sorta. It is the one I copied (rcp) all of the news from news2 into, then have streamed some USENET into it while figuring out Cleanfeed. The news2 server is streaming (mirroring) news5, which is the live "online" server. News5 doesn't have near as many articles on it as news2, since it was caught expiring one night last fall (at 14 days into its life). News2 was created (via pullnews) from another RumorMill, news85, running on a Mac 8500, which was the peer (backup) with news76. I'm "experimenting" with the news7 server. Next step is Suck (or SuckMT) so I can shut down the news76 Mac. When I get everything figured out correctly, and if I haven't wiped out any of the original articles, I could put news7 online -- or I could use my tried and proven changes on news2 and use it online. News7 has a faster CPU, so I may just use it. >>third paragraph of the Description in expire.ctl(5) has a typo in the >>first word, which should be "Blank" and not "Black"): >> >> > >Thanks, fixed. > > You are welcome. >>*:A:16:16:6 >>test,control.cancel:A:5:5:5 >>one,two,three,four,five:A:never:never:never >> >> > >You have the general idea of the ordering right. I've actually >never tried a comma-separated list myself, but it ought to work... > "General" scares me. ;-) I'll reconfigure news7 and let her fly. If something "breaks," I can easily rcp the spool from news2, and go to bed. I also want to try your script to rename a newsgroup's headers (xref, path, etc.) and see how it works. It was impossible to plan for growth using INN today, from what I had envisioned five years ago using RumorMill on the Mac platform. Thanks, Jeff. -- John
Re: expire.ctl
Author: John F. Morse
Date: Fri, 07 Jul 2006 06:24
Date: Fri, 07 Jul 2006 06:24
113 lines
4158 bytes
4158 bytes
Iulius wrote: > En réponse à John F. Morse : > >> Remembering a past goof when a bad configuration caused the >> expiration of many thousand local articles, I figured I better run >> this by the experts before I try it. > > > That's bad, all the more there is no way to recover them after expire > has come. Unless you have a backup peer that streams everything from the online server. ;-) >> test,control.cancel:A:5:5:5 >> one,two,three,four,five:A:never:never:never > > *:A:16:16:6 > > *:A:16:16:16 (I think it is a typo) Yes! Would you believe I looked at this for two days and could not see the typo? I was looking at your entry, where you fixed it for me. Just tonight I see where I did, indeed, accidentally delete the "1" from "16"! I remember deleting an alphabetic character that I accidentally entered, and must have got the "1" at the same time. Thanks! Perhaps someone over the age of 60, with failing eyesight, should sell all of the computers and take up fishing/angling? ;-) >> I am presuming the wildmat will allow the comma-separated list of >> groups? > > > Yes: <pattern> is a uwildmat(3)-style pattern, specifying the > newsgroups to > which the line is applied. Like in « newsfeeds » file, commas can be > used. > > By the way, you can also check this with: > inncheck -a -v -pedantic > and see it does not complain. > > >> Is the above in the correct order so I won't accidentally wipe out >> thousands of keeper articles? > > > That is fine. > > >> Would there be a better way to state my intentions, possibly using >> the bang to negate something? > > > Since the three lines have different expire time, you cannot state it > with > less than three lines! My concern was with long lines of newsgroup names. I know there is a limit of total characters in some configuration files. Thinking along this idea, I was wondering if it might be easier to obtain shorter lines by writing something like: comp*,!comp.apple,!comp.amiga:A;16:16:16 This might work to negate just a few groups of a hierarchy that I don't want. >> Could control.cancel be designated as control.* using the wildcard, >> or simply control*, and if so, would its use harm the other control >> groups? > > > If you say « control* », every control group will expire within five > days. > You can do that if you want (since control groups are not for readers but > for news servers). I'm entering this as control* and we'll see how it does. > By the way, I use: > > /remember/:5 > *:U:1:16:31 > *:M:1:31:31 > the-most-read-hierarchies-in-my-news-server:A:1:31:31 (or 62) > *.test:A:1:5:5 > *.announce*:A:1:62:62 > *.annonce*:A:1:62:62 > control.*:A:1:5:5 (since I do not have « control », but only subgroups) Thanks for the examples. I'll keep them on file, just in case. -- John
Re: expire.ctl
Author: Iulius
Date: Sat, 08 Jul 2006 09:58
Date: Sat, 08 Jul 2006 09:58
45 lines
2609 bytes
2609 bytes
En réponse à John F. Morse : > Yes! Would you believe I looked at this for two days and could not see > the typo? :) > My concern was with long lines of newsgroup names. I know there is a > limit of total characters in some configuration files. Well, you can also use : one:A:16:16:16 two:A:16:16:16 ... This will work similarly (and no worry !). I do not think it is useful to put everything on the same line (we see better what is written in several lines). > Thinking along this idea, I was wondering if it might be easier to > obtain shorter lines by writing something like: > > comp*,!comp.apple,!comp.amiga:A;16:16:16 > > This might work to negate just a few groups of a hierarchy that I don't > want. Typo « ; » -> « : » :o) If you do not want hierarchies, it is better to stop them in the pattern of « incoming.conf » (or with cleanfeed). Or simply not having them in your active file (but it is better to have them for a better handling of checkgroups). > Thanks for the examples. I'll keep them on file, just in case. I keep a longer time moderated groups and even longer announce groups. -- Iulius « Elle est gentille, mais les épices lui montent facilement au nez... qu'elle a joli d'ailleurs ! » (César)
Re: expire.ctl
Author: John F. Morse
Date: Sat, 08 Jul 2006 14:21
Date: Sat, 08 Jul 2006 14:21
76 lines
3406 bytes
3406 bytes
Iulius wrote: > En réponse à John F. Morse : > >> Yes! Would you believe I looked at this for two days and could not >> see the typo? > > > :) > > >> My concern was with long lines of newsgroup names. I know there is a >> limit of total characters in some configuration files. > > > Well, you can also use : > one:A:16:16:16 > two:A:16:16:16 > ... > > This will work similarly (and no worry !). > I do not think it is useful to put everything on the same line (we see > better > what is written in several lines). Yes, this is good to know, and you are absolutely correct about viewing a vertical list. It also could be easily sorted if needed. >> Thinking along this idea, I was wondering if it might be easier to >> obtain shorter lines by writing something like: >> >> comp*,!comp.apple,!comp.amiga:A;16:16:16 >> >> This might work to negate just a few groups of a hierarchy that I >> don't want. > > > Typo « ; » -> « : » :o) Another example of my bad eyes, combined with my bad aim at the keyboard. > If you do not want hierarchies, it is better to stop them in the pattern > of « incoming.conf » (or with cleanfeed). > Or simply not having them in your active file (but it is better to > have them > for a better handling of checkgroups). I don't see this in the incoming.conf file. I believe the reference to "group" is for a group of servers (peers), not newsgroups? Since I will be using Suck, I can probably configure it to pull only the groups I want, like I do now with the RumorMill NNTP server on the Macintosh. >> Thanks for the examples. I'll keep them on file, just in case. > > > I keep a longer time moderated groups and even longer announce groups. My local.announce group is open to me alone for posting (and canceling). It is a never:never:never group, and moderated by me, just in case someone has tried to post to it with something they feel is important. -- John
Re: expire.ctl
Author: Iulius
Date: Sat, 08 Jul 2006 18:10
Date: Sat, 08 Jul 2006 18:10
38 lines
2664 bytes
2664 bytes
En réponse à John F. Morse :
>> If you do not want hierarchies, it is better to stop them in the pattern
>> of « incoming.conf » (or with cleanfeed).
>> Or simply not having them in your active file (but it is better to
>> have them
>> for a better handling of checkgroups).
>
> I don't see this in the incoming.conf file. I believe the reference to
> "group" is for a group of servers (peers), not newsgroups?
peer news.a-server.fr {
hostname: "news.a-server.fr, 111.111.111.111"
patterns: "!*,comp.*,fr.*"
}
For instance. The only groups allowed for *that* peer is « comp.* » and « fr.* ».
http://www.die.net/doc/linux/man/man5/incoming.conf.5.html
%%
patterns:
This key requires a string value. It is a list of newsfeeds(5)-style list
of newsgroups which are to be accepted from this host. (default="*")
%%
> Since I will be using Suck, I can probably configure it to pull only the
> groups I want
Yes! But the behaviour is the same. It is the peer with localhost which is used
and I believe the pattern is the default « * » in your server.
--
Iulius
« -- C'est joli cette avenue le long de la mer... Ça s'appelle comment ?
-- La promenade des Bretons. » (Astérix)
Re: expire.ctl
Author: John F. Morse
Date: Sun, 09 Jul 2006 12:44
Date: Sun, 09 Jul 2006 12:44
44 lines
2589 bytes
2589 bytes
Iulius wrote:
> En réponse à John F. Morse :
>
>>> If you do not want hierarchies, it is better to stop them in the
>>> pattern
>>> of « incoming.conf » (or with cleanfeed).
>>> Or simply not having them in your active file (but it is better to
>>> have them
>>> for a better handling of checkgroups).
>>
>>
>> I don't see this in the incoming.conf file. I believe the reference
>> to "group" is for a group of servers (peers), not newsgroups?
>
>
> peer news.a-server.fr {
> hostname: "news.a-server.fr, 111.111.111.111"
> patterns: "!*,comp.*,fr.*"
> }
>
> For instance. The only groups allowed for *that* peer is « comp.* »
> and « fr.* ».
>
>
> http://www.die.net/doc/linux/man/man5/incoming.conf.5.html
>
> %%
> patterns:
> This key requires a string value. It is a list of
> newsfeeds(5)-style list
> of newsgroups which are to be accepted from this host. (default="*")
> %%
Yes, I find this in my man incoming.conf(5) now. It wasn't in any
example, so I overlooked it.
Thinks for providing it and the example, which I used to further my
education about keys.
--
John
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