🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Bruce Lilly Sat, 12 Jun 1993 14:24
trn 3.x features?
#4482
Author: Bruce Lilly
Date: Sat, 12 Jun 1993 14:24
41 lines
2528 bytes
I have a few questions regarding trn 3.x regarding whether or
not some quirks of trn 2.5 will be eliminated.

1)	It has been brought to my attention (Thanks David) that
	trn 2.x does not properly display the dates in Date
	headers which use "UT" rather than "GMT" (see RFC 1036,
	which refers to RFC 822, and RFC 822 section 5.1 and
	Appendix D. See also RFC 1123 section 5.2.14 which
	points out an error in RFC 822 (but names the wrong
	section) and reaffirms that "UT" and "GMT" are
	synonymous). An example is this article's Date header.
2)	Trn 2.x puts out a lot of drivel about ``Bogus''
	newsgroups when a newsgroup mentioned in .newsrc is
	listed in active with a C news-style "x" or "=foo" flag
	(fourth field).
3)	In the NNTP version of trn 2.x, when local articles have
	been posted (and the active file and threads databases
	have been updated) during a session, most of the time
	these articles are not displayed, even if one
	persistently answers "n" to the "End of newsgroups"
	prompt. If trn is exited and a new trn session is
	immeditely started, then the articles are displayed.
4)	KILL file pattern matching seems to be rather limited.
	For example, in some groups (e.g. misc.jobs.offered) I
	would like to kill articles which are cross-posted to
	other newsgroups. Currently I have several lines like:
		/Newsgroups: .*rec\./h:j:=
		/Newsgroups: .*talk\./h:j:=
		/Newsgroups: .*\.test/h:j:=
		/Newsgroups: .*\.misc/h:j:=
		...
	which takes a very long time to process, particularly if
	there are many articles in the newsgroup. I'd like to
	see more powerful pattern matching so that a single line
	like the following would work:
		/Newsgroups: .*(rec\.|talk\.|\.test|\.misc|\.resumes|alt\.|soc\.|\.contract)/h:j:=

Any chance that these have been or will be changed in trn 3.x?

-- 
	Bruce Lilly		...uupsi!monymsys!sonyd1!blilly!bruce
Re: trn 3.x features?
#4485
Author: Wayne Davison
Date: Sun, 13 Jun 1993 06:06
55 lines
2810 bytes
According to Bruce Lilly <lilb@sony.compuserve.com>:
> I have a few questions regarding trn 3.x regarding whether or
> not some quirks of trn 2.5 will be eliminated.

Okay, fire away.

> 1)	[...] trn 2.x does not properly display the dates in Date
> 	headers which use "UT" rather than "GMT"

The new yacc script (parsedate.y) seems to have parsed your date
header just fine in the article you posted.  Though it doesn't
explicitly understand UT, it does assume it is GMT.

> 2)	Trn 2.x puts out a lot of drivel about ``Bogus''
> 	newsgroups when a newsgroup mentioned in .newsrc is
> 	listed in active with a C news-style "x" or "=foo" flag
> 	(fourth field).

Yeah, this was inherited from rn and is still the case today.  It would
probably be better to treat the group as a "no posting" group, especially
since a newly redirected group might have old articles around and treating
it as bogus means that you can't read them.  This is really easy to change
if you want to.

> 3)	In the NNTP version of trn 2.x, when local articles have
> 	been posted [...] these articles are not displayed
>	[until] trn is exited and a new trn session is [...] started

Fixed.  NNTP is partly at fault for this one.  Even if you re-send a
GROUP command the numbers it sends back don't get updated from the
numbers when you started trn.  Trn 3.0 now has a special "check for
new articles" routine that is invoked at the end of the group to force
NNTP to tell us if new articles have indeed arrived.

> 4)	KILL file pattern matching seems to be rather limited.

It could use some improvement, yeah, but it is a bit better than you think.

> 	Currently I have several lines like:
> 		/Newsgroups: .*rec\./h:j:=
> 		/Newsgroups: .*talk\./h:j:=
> 		/Newsgroups: .*\.test/h:j:=
> 		/Newsgroups: .*\.misc/h:j:=

In trn 2.x or 3.0 you could write this as:

/^Newsgroups: .*rec\.\|^Newsgroups: .*talk\.\|^Newsgroups: .*\.test/h:j:=

(I removed the last one to make it look nicer for posting and anchored
your Newsgroups: headers to the start of the line.)

The key is the \| separator that matches any of the listed strings.  Now
if it was only allowed in a \(...\) sub-list, but alas.

.wayne..
Re: trn 3.x features?
#4491
Author: Bruce Lilly
Date: Sun, 13 Jun 1993 17:16
38 lines
2042 bytes
In article <C8JqAn.EG@borland.com>,
 posted to news.software.readers,
 davison@borland.com (Wayne Davison) wrote:
>
>> 4)	KILL file pattern matching seems to be rather limited.
>
>It could use some improvement, yeah, but it is a bit better than you think.
>
>> 	Currently I have several lines like:
>> 		/Newsgroups: .*rec\./h:j:=
>> 		/Newsgroups: .*talk\./h:j:=
>> 		/Newsgroups: .*\.test/h:j:=
>> 		/Newsgroups: .*\.misc/h:j:=
>
>In trn 2.x or 3.0 you could write this as:
>
>/^Newsgroups: .*rec\.\|^Newsgroups: .*talk\.\|^Newsgroups: .*\.test/h:j:=
>
>(I removed the last one to make it look nicer for posting and anchored
>your Newsgroups: headers to the start of the line.)
>
>The key is the \| separator that matches any of the listed strings.  Now
>if it was only allowed in a \(...\) sub-list, but alas.

Hmmm... I tried this.  With more than two \|-separated patterns
I get a SIGSEGV (trn version 2.5).  With
/^Newsgroups: .*\.resumes\|^Newsgroups: .*\.contract/h:j:=
I get a "badly compiled pattern" message, trn starts to try to
junk every article in the newsgroup, and I get a SIGSEGV after
about 5 articles are junked. OK, maybe the pattern matching is a
bit better than I had thought, but ....

>..wayne..

Thanks for the speedy response, Wayne.

-- 
	Bruce Lilly		...uupsi!monymsys!sonyd1!blilly!bruce
Re: trn 3.x features?
#4519
Author: Lord Yak Da Hairy
Date: Tue, 15 Jun 1993 14:20
17 lines
1421 bytes
In article <C8IIo7.737@blilly.uucp> lilb@sony.compuserve.com (Bruce Lilly) writes:
:4)	KILL file pattern matching seems to be rather limited.
:	For example, in some groups (e.g. misc.jobs.offered) I
:	would like to kill articles which are cross-posted to
:	other newsgroups. Currently I have several lines like:
:		/Newsgroups: .*rec\./h:j:=
:		/Newsgroups: .*talk\./h:j:=
:		/Newsgroups: .*\.test/h:j:=
:		/Newsgroups: .*\.misc/h:j:=
:		...

/Newsgroups:.*,/h:j:=

Kills all posts with more than one group in the Newsgroups line.

-- John Yeates (Lord Yak Da Hairy) --------------- johny@cogs.susx.ac.uk --
-- "Now ogging... THAT'S quality violence." -------------- Jeff Coleburn --
Re: trn 3.x features?
#4547
Author: Mitch Gorman
Date: Wed, 16 Jun 1993 15:08
31 lines
1947 bytes
In article <C8JqAn.EG@borland.com> davison@borland.com (Wayne Davison) writes:
>According to Bruce Lilly <lilb@sony.compuserve.com>:
>> 4)	KILL file pattern matching seems to be rather limited.
>
>It could use some improvement, yeah, but it is a bit better than you think.
>
>> 	Currently I have several lines like:
>> 		/Newsgroups: .*rec\./h:j:=
>> 		/Newsgroups: .*talk\./h:j:=
>> 		/Newsgroups: .*\.test/h:j:=
>> 		/Newsgroups: .*\.misc/h:j:=
>
>In trn 2.x or 3.0 you could write this as:
>
>/^Newsgroups: .*rec\.\|^Newsgroups: .*talk\.\|^Newsgroups: .*\.test/h:j:=
>
	Incidentally, Bruce, if what you want to do is kill all crossposted articles,
	regardless of where they're cross-posted, you could just kill articles with a
	comma (,) in the Newsgroups: line.  One single killfile statement to be
	processed, searching for a single pattern, would obviously be quicker than 
	either of the above solutions.

	My apologies if this was too boneheadedly obvious for anyone else but me to
	mention!  ;)


-- 
Mitch Gorman, GWB, NMTDYWSUOSD, ISAGN, STFU	mgorman@telesciences.com

"You can blow out a candle, but you can't blow out a fire.
	Once the flame begins to catch, the wind will blow it higher."
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