๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Frank Slootweg Tue, 01 Feb 2000 00:00
tin: "you have hot articles in ..." facility?
#57623
Author: Frank Slootweg
Date: Tue, 01 Feb 2000 00:00
33 lines
2087 bytes
  Is there a facility in/for tin which can notify the user if (s)he has
any new hot articles and in which group(s)?

  I.e. if there is a response to this article, I would like to get a
notification like "you have [..] hot articles in group
news.software.readers".

  Background:

  I really like tin's hot article facility to keep track of responses to
my responses/articles or of otherwise interesting threads. However it is
rather cumbersome to manually enter each of the about 70 groups to which
I am subscribed, in order to see if they happen to have any new hot
articles.

  For tin 1.2, I 'solved' this with a script which automatically ran tin
and entered each of the groups and checked the hot ("H") indication.
However now I use 1.4 and, because the screen layout/use is quite
different, I have to practically start from scratch again. Also my
script is rather shakey, because it does not really handshake with tin,
i.e. it just sends commands (with echo(1)) and expects the right output.
If, for whatever reason, for example timing, the output is not what I
expect, the script screws up big time, or worse, tin gets in a "bad
command" loop, eating the CPU and disk. I probably should have used
expect(1), but even then the tin output is not easy to parse.

  I know that it is not easy for tin to present a hot articles
indication at the Group Selection level, but for the user it is even
more difficult/cumbersome.

  Thanks in advance for any and all responses.

Re: tin: "you have hot articles in ..." facility?
#57647
Author: T.E.Dickey
Date: Wed, 02 Feb 2000 00:00
29 lines
2090 bytes
Frank Slootweg <franks@neth.hp.com> wrote:

> OOPSFiltering global rules (12/35)...OOPSOOPSThreading articles...OOPSOOPS 134 unread articles in rec.travel.australia+nz

>   I could only find the string "OOPS" in the tin executable, not in any
> other file in the tin package.

"OOPS" comes from termcap applications (not tin).
From SunOS's termcap manpage:

     tgoto() returns a cursor addressing string decoded  from  cm
     to  go  to  column  destcol  in  line destline.  It uses the
     external variables UP (from the up capability) and BC (if bc
     is  given  rather than bs) if necessary to avoid placing \n,
     ^D or ^@ in  the  returned  string.   (Programs  which  call
     tgoto()  should  be  sure to turn off the XTABS bit(s),since
     tgoto()  may  now  output  a  tab.   Note:  programs   using
     termcap() should in general turn off XTABS anyway since some
     terminals use ^I (CTRL-I) for other functions, such as  non-
     destructive  space.)  If  a % sequence is given which is not
     understood, then tgoto() returns OOPS.


-- 
Thomas E. Dickey
dickey@clark.net
http://www.clark.net/pub/dickey

Re: tin: "you have hot articles in ..." facility?
#57664
Author: Frank Slootweg
Date: Wed, 02 Feb 2000 00:00
25 lines
1570 bytes
Urs Jan?en <urs@buil.tin.org> wrote:
[deleted]
> no, but this would be a job for 'tin -v -Z' as it allready does
> filtering and prints out some informations about the group(s).
> a patch for that is easy *click-clack* tin -v -Z:
> [...]
>   37 unread (   2 hot) articles in comp.mail.mutt
>   28 unread (   0 hot) articles in news.admin.hierarchies
>    9 unread (   1 hot) articles in news.software.nntp
>   23 unread (   6 hot) articles in news.software.readers
> [...]
> would that be ok?

  That would be great! Can you please let me know when that patch is
done?

  Minor point: My (1.4.0) 'tin -v -Z' output is splattered with "OOPS",
for example:

OOPSFiltering global rules (12/35)...OOPSOOPSThreading articles...OOPSOOPS 134 unread articles in rec.travel.australia+nz

  I could only find the string "OOPS" in the tin executable, not in any
other file in the tin package.

Re: tin: "you have hot articles in ..." facility?
#57790
Author: Frank Slootweg
Date: Mon, 07 Feb 2000 00:00
22 lines
1720 bytes
Urs Jan?en <urs@buil.tin.org> wrote:
> In <87978v$v6a$1@news.hamburg.pop.de>,
>     Urs Jan๏ฟฝen <urs@buil.tin.org> wrote:
>>>   That would be great! Can you please let me know when that patch is
>>> done?
>> will be in the next (gimme a few days) stable (1.4.2) and unstable (1.5.2)
>> release; it was a simple 4-liner.
> 
> both released this weekend

  Thanks! It ("-Z" also reports number of hot articles) works great! (I
tried 1.4.2 20000205). Also the OOPS stuff is gone!

  Minor point: After using "-v -Z", the 'terminal' is left in a mode
with echo off (and perhaps other incorrect settings). For me that is no
problem, because I will probably run it from crontab(1), but for others
it might.

[I hope I got the 8bit/MM_CHARSET stuff right. This is the first time I
 am using it, because tin complained about my settings.]

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