On Tue, 2 Apr 1996, Seth Anderson wrote:
I downloaded Procmail 3.10 and SmartList (3.10?) two days ago, and am
having difficulty trying to make them work. (I am concentrated on
Procmail so far; SmartList will come later when I want to learn how to
create my own mailing lists.) We are running UNIX, and as yet I am not a
super user.
So far, this is what I have done: downloaded, extracted, and built the
procmail program. I moved it in my $HOME/bin directory, along with the
other executable programs. I have created a ".procmailrc" file as well
as a ".forward" file... (Though, to be honest, I do not know if the
".forward" file is even being looked out through the C Shell.)
Here's an eay way to find out if your .foreward is being invoked
gjw(_at_)shellx:/home/gjw> Mail -v gjw < /dev/null
No message, no subject; hope that's ok
/home/gjw/.forward: line 1: forwarding to "|IFS=' '&&exec
/usr/local/bin/procmail -f-||exit 75 #gjw"
"|IFS=' '&&exec /usr/local/bin/procmail -f-||exit 75 #gjw"... Sent
gjw(_at_)shellx:/home/gjw>
The ".procmailrc" file is as follows:
MAILDIR=$HOME/Pine/Mail
LOCKFILE=$HOME/$LOGNAME
SENDMAIL=$PGPPATH/pgpsendmail
LOCKEXT=.lock
LOGFILE=$HOME/procmail.log
VERBOSE=on
:0
* ^FROM x-files
x-files
:0
* ^FROM sliders
sliders
:0
* ^FROM pine-info
pine-info
For one thing, those recipes all deliver to files, so you want to use
lock files. This is done by changing the :0 at the beginning of your
recipe to :0: (assuming no flags)
Something else is that you need to match againts regular expression, not
just substrings. If you wanted to pick up everyrthing with x-files as a
substring, you would need something like
* ^FROM.*x-files.*
The dot (.) means any character, and the asterisk (*) means repeated zero
or more times.
Oh, boy, this is where I am most confused. Basically, I want it to sort
through my mail, looking at the mailing lists from Sliders,
Sliders-Creative, X-Files, X-Files-Romantics, X-Files-Fanfiction,
Pine-Info, and from my friends -- sending all the mail to different files.
I have created the "INBOX"es within PINE 3.91, and I am just waiting to
learn how to use Procmail...
Thankx...
---
Gregory Woodhouse gjw(_at_)wnetc(_dot_)com
home page: http://www.wnetc.com/
resource page: http://www.wnetc.com/resource/