Subject: Re: Q: no filter mechanisme for pine?!

From: [email-masked] (Orjan Johansen)
Date: 1 May 1997 23:48:22 GMT

In article <[email-masked]>,
Sven Guckes <[email-masked]> wrote:
>
>Added to the Pine-4 wishlist:
>
>	http://www.math.fu-berlin.de/~guckes/pine/#wishlist

Would you put something there about making pine multi-threaded so it 
doesn't lock up every time it rewrites the inbox?

Greetings,
Ørjan.

---

From: [email-masked] (Sven Guckes)
Date: 5 May 1997 12:50:48 GMT

[email-masked] (Orjan Johansen):
> Would you put something there about making pine multi-threaded
> so it doesn't lock up every time it rewrites the inbox?

I would do so if I didn't have to read all posts in all newsgroups
so I catch someone suggesting it in some subthread.  ;-)
Read:  Send me an email about it and I'll see about adding it.

Sven

---

From: Paul O Bartlett <[email-masked]>
Date: Fri, 9 May 1997 19:09:23 -0400

On Fri, 9 May 1997, Hans-Joachim Gurt wrote:

> On 1 May 1997, Sven Guckes wrote:
> > [...]
> > Mail filters are supposed to be independent from mail user agents.
> 
> ok - for mail, procmail works fine.
> But for news, I havn't seen anything independent yet. [...]

    Because you mention procmail, I am assuming you are using some sort
of Un*x system.  Therefore, for general interest, I will repeat the
post I made some time ago about a kludge for using killfiles _ahead_ of
starting Pine to read newsgroups.

 = = = = = start reposted message (slightly amended) = = = = =

Date: Sat, 22 Feb 1997 14:04:29 -0500
>From: Paul O Bartlett <[email-masked]>
Newsgroups: comp.mail.pine
Subject: Re: Kill Files

On Fri, 21 Feb 1997, Nico Hailey wrote:

: > But you can have a delivery program like procmail or slocal do it for you.
: > That's what I do.
: 
: For me procmail only filters mail, how do you get it to filter news?
: a previous post on this thread sugested trnkill for news...

    Procmail does not filter news.  It only deals with mail.  I was
the one who suggested running trnkill before reading news with Pine. 
It is a short Un*x script, and I will append it below my signature. 
There are several aspects that are necessary to know about using it.

1)  Obviously, it only works on Un*x systems.

2)  trn must be installed on your system and in your $PATH.

3)  You must have killfiles.  That is a small subject in itself which I
    won't go into here, although they are not too difficult to set up
    for basic operations.  man trn  can supply some information.

4)  There is one minor glitch in the interface with Pine.  Suppose at
    the moment, the highest-numbered message on your system for
    newsgroup soc.culture.junk.trash is 12345.  It just so happens 
    that that article meets a killfile criterion, so trnkill updates
    your .newsrc to mark 12345 as read.  Now you are going from
    newsgroup to newsgroup in Pine with the <tab> key.  If the next
    group you tab to is soc.culture.junk.trash, Pine sees that the
    highest-numbered article in the group right now is the same as the
    highest-numbered article marked as read in .newsrc, so it skips the
    whole newsgroup.  Pine does not notice that there are some
    intermediate numbers which have not been marked as read.  However,
    you can manually go back to the folder display, highlight the
    group, and open it "by hand."  This glitch is more a nuisance than
    a real bug.

trnkill shell script:

#!/bin/sh
# trnkill - shell script to apply trn KILL files in the background
# 14 Mar 89  created for rn by Jim Olsen <[email-masked]>
# 10 Sep 93  modified for trn 3 (or 2) by Wayne Davison <[email-masked]>
# 16 Nov 94  complete rewrite; via e-mail from Chin Huang <[email-masked]>
#
# Options: -d   debug mode -- you see all gory action as it happens.
#
# Visit all newsgroups (if trn asks about anything else, just say no)
export TRNINIT TRNMACRO RNMACRO
TRNINIT='-q -s -T -t -x +X'
TRNMACRO=/tmp/trnkill$$
# support for trn 2.x
RNMACRO=$TRNMACRO
trap 'rm -f $TRNMACRO; exit' 1 2 3 15
cat >$TRNMACRO <<'EOF'
z  %(%m=[nf]?.q^J:n)^(z^)
^m ^(z^)
^j ^(z^)
EOF
if test X$1 = X-d; then
        echo "z" | trn
else
        echo "z" | trn >/dev/null 2>&1
fi
rm -f $TRNMACRO
exit 0

Paul                             <[email-masked]>
----------------------------------------------------------
Paul O. Bartlett, P.O. Box 857, Vienna, VA 22183-0857, USA
Finger, keyserver, or WWW for PGP 2.6.2 public key
Home Page:  http://www.access.digex.net/~pobart

---

From: Hans-Joachim Gurt <[email-masked]>
Date: Fri, 9 May 1997 21:58:51 +0200

On 1 May 1997, Sven Guckes wrote:

> [email-masked] (Paul O Bartlett):
> > On 28 Apr 1997 [email-masked] wrote:
> > > is it true, that in pine does not exist any filter 
> > > mechanisme like in elm?
> > That is correct.  At the present time, Pine does not do any mail or
> > newsgroup filtering.  

ok - for mail, procmail works fine.
But for news, I havn't seen anything independent yet.
  
> My wish for Pine-4.0:
> Add a page of help that explains a "filter" in a few words and with
> pointers to procmail in order to eliminate these kinds of FAQs right away!

and explain how to filter/killfile while reading news with pine ?

By(t)e,
 HaJo Gurt

---

From: [email-masked] (Sven Guckes)
Date: 12 May 1997 17:26:02 GMT

[email-masked] (Hans-Joachim Gurt):
> > > > pine does not exist any filter mechanisme like in elm?
> > > That is correct.  Pine does not do any mail or newsgroup filtering.  

There are newsreaders which you can run to apply the killfile automatically
on the newsrc.  You don't have to use them for reading only, see?  ;-)

> and explain how to filter/killfile while reading news with pine ?

The killfile part is easy:

	"PINE does not have a killfile.  Period."

That was easy.  Next!!

Sven

-- 
"Scoring" rules!  Use SLRN!