[97429] in RedHat Linux List
Re: Pine setup
daemon@ATHENA.MIT.EDU (dsb3)
Tue Nov 3 08:11:45 1998
Date: Tue, 3 Nov 1998 07:14:20 -0600 (CST)
From: dsb3 <dsb3@earthlink.net>
To: Ronnie Thum <cwthum@network2.cs.usm.my>
cc: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.96.981103140723.3728B-100000@network2.cs.usm.my>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
On Tue, 3 Nov 1998, Ronnie Thum wrote:
>
>How can I set up Pine 3.96 to put mails from the RedHat list to a
>specified folder. eg. RedHat ?
>
use procmail, which should already be installed.
My .procmailrc file looks a bit like this in places:
---- begin
###
### procmailrc
### mail filtering rules
###
MAILDIR=/home/dave/.filter
SENDMAIL=/usr/sbin/sendmail
### redhat-{}
:0:
* ^X-Mailing-List: <[^@]*@redhat.com>
* ^X-Mailing-List: <\/[^@]*
linux/$MATCH
---- end
now, pine is set up to look at /home/dave/.filter/linux as a folder group
specifically with this portion of .pinerc
--- begin
# List of directories where saved-message folders may be. First one is
# the default for Saves. Example: Main {host1}mail/[], Desktop mail\[]
# Syntax: optnl-label {optnl-imap-hostname}optnl-directory-path[]
folder-collections=mail/[],
.filter/linux/[]
--- end
Note, these are not 'incoming' folders so you can't tab between them.
The procmail recipe will handle pretty much any redhat-<something> list
and save it in it's own folder. Note the first check looks for the entire
X-MailingList line, INCLUDING the hostname to be sure we've got the right
mail, then the second one subsequently looks for a reduced portion of the
above so that $MATCH will contain only 'redhat-list', 'redhat-announce' or
whatever.
- Dave
--
| oOOooO /
--| oOobodoO / dsb3@earthlink.net
--| ooOoOo /
| II / Kernel Panic: /dev/brain is on fire.
| II / MD5: 13aa1b8724ce1885cd9e7cad9b2eb9ba
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.