Subject: procmailrc

From: "Krishnakumar Subramanian" <[email-masked]>
Date: Sun, 07 Feb 1999 19:48:48 PST

Can anyone help me with getting a default procmailrc file or help me in 
writing one on my own. I get a lot of mails and have difficulty sorting 
them with pine.
I am looking for a way to send mail with specific address to a specific 
folder on arrival. Also I would like to send all read mails to specific 
folders. I am aware that there is help in pine itself, but I am not able 
to configure it properly.
            Thanking you in advance,
            S Krishnakumar <[email-masked]>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Ken Woods <[email-masked]>
Date: Sun, 7 Feb 1999 23:36:58 -0500 (EST)

(those of you on cmp should recognize this...)

o  This is a procmail file, or recipe.
o  This is how to filter mail.
o  You put this file in your home directory.
o  This is used to filter email.
o  This file is called ".procmailrc"
o  One could use this to filter email.
o  Do not use the "'s
o  Filtering email is the art of putting things in different places for
   the ease of reading them.
o  This is from one of my machines. You cannot simply cut and past
   everything from my machine to yours and expect it to work.
o  People use things JUST LIKE THIS ONE to filter email.
o  You have to do some research on YOUR system to make this work
   correctly on YOUR system.

		The dotted line is not included in the file.
			Remove the dotted line.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/opt/local/bin:.
MAILDIR=/where/you/want/your/mail/stored 
DEFAULT=/where/incoming/mail/is/stored

LOGFILE=/home/username/logfile

:0:
* ^From:[email-masked]
/home/kwoods/mail/nameoffolderwhereyouwanttheirmailtogo

:0:
* ^From:[email-masked]
/dev/null

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  Press the delete key until there are no more "-" in the line above.
		Again, remove the dotted line.

Set MAILDIR to wherever your want your mail stored.
You CAN _NOT_ use the ~username/mail syntax.  The full path MUST be
spelled out, ie, /home/kwoods/mail

Set DEFAULT to wherever the incoming mail is stored. 
most likely, /var/mail/username, or /var/spool/mail/username

The LOGFILE is a log, or record, of what procmail is doing with the mail. 
Useful for troubleshooting.  Again, spell out the full path. This file
will get VERY BIG, VERY quickly.  Remember to delete is every once in a
while. 

Now, if you've gotten this far, and you still need help, go to
http:///www.r-t-f-m.com  I've helped you as much as I can.

-- 
Ken Woods
[email-masked]

-- 
Ken Woods
[email-masked]

---

From: Timothy J Luoma <[email-masked]>
Date: Mon, 8 Feb 1999 03:05:05 -0500

Author:	"Krishnakumar Subramanian" <[email-masked]>
	Date:	Sun, 07 Feb 1999 19:48:48 PST
	ID:	<[email-masked]>

> writing one on my own. I get a lot of mails and have difficulty sorting

This is a question for the procmail mailing list,  
[email-masked]

> folder on arrival.

basically it would be something like this:

SHELL=/bin/sh
USER=YourUSERNAMEhere
PATH=YourPathHere

# change this to the dir where PINE saves mailboxes
# if you don't know, try this command at a prompt:
#
#  fgrep folder-collections ~/.pinerc |\
#  sed 's/folder-collections=//g' | sed 's/\/\[\]$//g'
#
# remove the '#' from in front of those two lines

MAILDIR=$HOME/mail

:0w:
* ^Sender: PINE-INFO-owner
pine-info

:0w:
* ^From:.*kriskumar_s@hotmail\.com
From_ME

:0w:
* ^TOkriskumar_s@hotmail\.com
TO_ME

# NOTE: ^TO is special to procmail

For any followup questions, please checkout the procmail list.

> Also I would like to send all read mails to specific

Goto the configure screen and select this option:

            [ ]  auto-move-read-msgs

TjL

ps -- These user questions really belong on comp.mail.pine