Subject: Re: Kill Files

From: [email-masked] (Frankie)
Date: 18 Feb 1997 23:41:27 GMT

Pine does not currently support kill files

-frankie

: How do I set up a Kill File under Pine...  I am running Pine on a

---

From: Paul O Bartlett <[email-masked]>
Date: Sun, 16 Feb 1997 17:27:23 -0500

On 16 Feb 1997, Jimmy Palatsoukas wrote:

> How do I set up a Kill File under Pine...  I am running Pine on a
> Sun Workstation (Unix OS).  Any help would be greatly appreciated and
> please reply by email ([email-masked]).

    Sorry, but Pine does not implement killfiles in its present
incarnation.  (Some day..., some day...)  For incoming _mail_ you can
use tools like procmail or filter.  (Browse my home page to get links
to take you to a lot of good mail filtering information.)  For
newsgroups, I use a kludge called trnkill, a shell script which invokes
the newsreader trn before I start Pine to update my .newsrc file with
the practical effect of killfiling.  It isn't perfect, but it's better
than nothing.  Lack of killfiles seems to be one of Pine's major design
shortcomings.

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: Paul O Bartlett <[email-masked]>
Date: Sat, 22 Feb 1997 14:04:29 -0500

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."

#!/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

---

From: Paul O Bartlett <[email-masked]>
Date: Sun, 23 Feb 1997 16:57:27 -0500

On Sun, 23 Feb 1997, Cuentas Eduardo wrote:

> Reading the 2 previous postings I get kill files are just intended to
> be used with USENET, what if I want to kill mail messages coming from
> an specific e-mail Adress? Does anybody know if it is possible?

    Yes, it is certainly possible, but you have to use some other tool
in addition to Pine.  From your message header, I am not certain what
kind of operating system you are using.  If it is a version of Unix,
you can use a tool such a procmail or filter, if they are installed on
your system.  To get information on mail filtering, if you have a WWW
browser, browse my home page and follow the link to Nancy McGough's
informational material.  Several links in, she has a lot of valuable
information on mail filtering (in English).

---

From: Cuentas Eduardo <[email-masked]>
Date: Mon, 24 Feb 1997 01:28:38 +0100

Hi!

I have an account on a AIX system using AIX 3.2.5 on a IBM RS
6000-250.

It seems there is procmail installed (would you recommend filter
instead?) and I have already collected a couple of URLs to procmail
information.

Just one more question, what really would be the best is if I could
autoforward only mail coming from one e-mail address, do you know if
procmail can do this?

Many thanks Paul!

Eduardo

Eduardo Cuentas
[email-masked]
http://www.rz.uni-passau.de/~cuenta01/