Anyone!
I went over a file the other day and I had done a few things
that I hadn't before. Still upon execution NOTHING. Now, I know what
your saying, Use that MAN Luke! But I have been there and done that and
nothing seems to be doing as it should. Let me send you EVERYTHING I have
and hope you might be able to provide a solution.
.fetchmailrc
------------
poll mail.isp.net proto pop3
user xxxxxx password xxxxxx
# SO far, it works like a champ!
mda "/usr/bin/procmail"
#this seems to execute proc on the mail.
.forward
--------
"|IFS=' ' && exec /usr/bin/procmail -f- || exit 75 #dionysus"
.procmailrc
-----------
MAILDIR=$HOME/Mail
LOGFILE-$HOME/.procmail/proc.log
PMDIR=$HOME/.procmail
PATH=/bin:/usr/bin:/usr/local/bin
SHELL=/bin/bash
INCLUDERC=$PMDIR/rc.linuxlists
INCLUDERC=$PMDIR/rc.dionysus
rc.linuxlists
-------------
:0:
* ^From.*newbie
linux-newbie
:0:
* Cc.*newbie
linux-newbie
rc.dionysus (follows same rule as above for testing mail)
-----------
startproc
----------
This file has EVERYTHING you sent to me VERBATIM!
The only difference is the ORGMAIL destination.
getmail (my grab mail and toss it file)
-------
fetchmail (which uses ~/.fetchmailrc)
startproc
<SNIP>
Now, I have tried fetchmail (omitting the mda part) using all of
the above and it just HANGS. No drive movement, no filtering. It is
however in the process of the script "startproc" When I hit <CTRL-C> it
stops the process and asks me if I want to delete one of the lock files
that it makes. When I run it with mda in the fetchmailrc file (as above)
it gets the mail, then TRIES to filter it out, but it "couldn't chdir to
/home/dionysus/mail" and does this for EACH one of the messages. Of course
when its done, I have nothing to read. I'm running this whole operation
as my user acct "dionysus" and not under root. Below are file permissions.
~/.forward -rw-r--r-- dionysus dionysus
~/.procmailrc -rw-rw-rw- dionysus dionysus
~/.procmail drw-rw-rw- dionysus dionysus
~/.fetchmailrc -rw------- dionysus dionysus
~/Mail drw------- dionysus dionysus
/usr/bin/fetchmail -rwxr-xr-x root root
/usr/bin/procmail -rwsr-sr-x root mail
(Try not to laugh to hard here, remember I'm new at this!)
Now I have played with having root and mail on the ~/mail dir. I
have asked a few if this could be my problem, but getting help these days
is not an easy task. Man files NOR webpages have info on the properties
of these files, only their contents. Now, ALL I want to do is get the
mail, and toss it to dirs on my system (I'm the only one using it fer now)
and perhaps in the future (once I get it going) forward some incomming
mail.
I will owe you plenty if you see a problem here.
Many thanks.
----Dionysus----