Subject: Pine 3.87 and Folder Filters?

From: "John E. Burton Jr." <[email-masked]>
Date: Fri, 29 Oct 1993 10:07:02 -0500 (CDT)

I have a couple of questions about pine and filters for mail folders.  
I'm not a programmer, just a user, so please keep responses "basic," and 
excuse me if the questions are FAQs.  I know there was some discussion on 
this list earlier about filters, but I was not focusing on it at that time.

I receive mail from several mailing list, and would like to have the
incoming mail from these lists routed to a folder just for that list or
topic.  Can this be done?  If so, how?  I've read the technical notes,
help menus on pine and looked at examples in the .pinerc file, but still
cannot figure out how to do this.  

An example.  I receive incoming mail messages from a list
[email-masked] and would like to have new incoming messages from
this list got directly into a folder called "roots" instead of into my
INBOX.  How would I configure the .pinerc file to get the incoming mail
messages from this source to be filtered/routed into my folder called
roots instead of to my INBOX?  

Thanks very much.  Appreciate any help.  If this is something not of
interest to others, you can just e-mail me direct rather than to the list. 

-------------------------------------------------------
John E. Burton, Jr.           [email-masked]
Extension Rural Sociologist          
Cooperative Extension Service       
213 Extension Hall                 Tele: 205/844-5325
Auburn University, AL 36849        FAX:  205/844-9022
-------------------------------------------------------

---

From: Mike Ramey <[email-masked]>
Date: Fri, 29 Oct 1993 08:34:50 -0700 (PDT)

YES!  I would very much like a primer on mail filters.
I think they are implemented via the .forward file -- not .pinerc.
(cf the 'vacation' program)
Is there any thorough & understandable documentation on the uses 
of the .forward file?  Other than "read the source code"?  
... and on available filter programs and how to use them ???  -mr

---

From: Elmar Kurgpold <[email-masked]>
Date: Fri, 29 Oct 1993 09:27:17 -0700 (PDT)

John,

I have been using a program called "procmail".  This program will allow 
you to assign any sort of function for your incoming mail, based on what 
is in the headers.  For example, I have all mail that has a From line of 
"owner-pine-info" go into a folder in ~/mail/pine-info.  You can download 
this program from archie.  I'm no programmer either, but if you need some 
help drop me a line.

TO THE PINE TEAM:

As you can see I have mail from different people or mailing lists go into
folders.  My gripe is that when I enter the folder, the "current" message
is the very last one.  I would expect this to be the first *new* message,
ie the one with the lowest number marked with an "N".  I believe this is
how it works for the INBOX.  By the way, I'm running 3.87 on a
Sun4m/Solaris 1.1. 

	-------------------------------------
	| Elmar Kurgpold                    |
	| Network Administrator             |
	| University of Southern California |
	| The Law Center                    |
	| [email-masked]              |
	| (213)740-2571 FAX: (213)740-5502  |
	-------------------------------------

---

From: Ed Greshko <[email-masked]>
Date: Sat, 30 Oct 1993 00:25:14 +0800 (TPE)

John,

	This is not something that is done in pine.  It is not included
in the pine package.  

	I use the "filter" routine supplied as part of the elm package.
Another alternative, I'm told, is procmail. 

	I'm happy with the "filter" from elm.  It can store messages
in folders according to Subject:, To:, From:, and other things.  You
can also start a process depending on those same fields.

					Regards,
						Ed

Edward M. Greshko			Control Data Taiwan
Voice: +886-2-715-2222 x287		6/F, 131 Nanking East Road, Section 3
FAX  : +886-2-712-9197			Taipei, Taiwan R.O.C

---

From: "Robert A. Hayden" <[email-masked]>
Date: Fri, 29 Oct 1993 11:42:07 -0500 (CDT)

> cannot figure out how to do this.  

I use and recommend using the 'filter' program that comes with elm.  It 
is a very functional filter program and can easily handle by 65 or so 
defined filter fields I have set up.  (also makes a great kill file for 
mailing lists :-)

____         Robert A. Hayden          <=> [email-masked]
\  /__           -=-=-=-=-             <=>          -=-=-=-=-
 \/  /    Finger for Geek Code Info    <=> Veteran of the Bermuda Triangle
   \/   Finger for PGP 2.3a Public Key <=> Expeditionary Force -- 1993-1951
-=-=-=-=-=-=-=-
(GEEK CODE 1.0.1)  GSS d- -p+(---) c++(++++) l++ u++ e+/* m++(*)@ s-/++
		       n-(---) h+(*) f+ g+ w++ t++ r++ y+(*)

---

From: Terry Gray <[email-masked]>
Date: Fri, 29 Oct 1993 10:00:42 -0700 (PDT)

On Fri, 29 Oct 1993, Elmar Kurgpold wrote:

> how it works for the INBOX.  

Elmar,
If you filter your incoming into folders defined in the "incoming-folders="
variable of your pinerc, and open them via that section of your List 
Folders screen, you'll get the behavior you want.

The incoming-folders idea was exactly for this delivery filter case, or 
where you have inboxes on multiple machines, and accordingly the initial 
message is set to the first new one.

In the saved-message folders, the last msg is thought to be more often of
interest, and until the IMAP2bis extension is implemented that permits
copying the message-state flags, looking for the first "New" msg is not
very useful anyway. 

-teg

---

From: Mike Ramey <[email-masked]>
Date: Fri, 29 Oct 1993 10:04:49 -0700 (PDT)

I didn't know about the 'incoming-folders' parameter in the .pinerc file.
A tutorial on how to use it would be very helpful.  -mr

---

From: "Jackie \"Oh!\" Owen" <[email-masked]>
Date: Fri, 29 Oct 1993 16:51:24 -0400 (EDT)

If you get the elm software, in the doc subdirectory, there is a 
Filter.guid which I found very helpful in implementing filters for one 
of our users.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jackie Loucks Owen				Network Administrator
[email-masked]				Ramapo College of NJ
						Mahwah, NJ

        "Time flies like an arrow.  Fruit flies like a banana."
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~