Roger Simmons wrote:
Hi,
I have started using procmail and am having some problems.
I am running procmail within a script given in the man page to sort all
my incoming mail
that gets popped by using Netscape messenger. I want to sort all mail
in the file $HOME/.mail/Inbox
Here are the problems I am having. (using procmail v3.10 1994/10/31)
Here is an entry in my .procmailrc
:0
* ^To(_dot_)*port-i386(_at_)NetBSD(_dot_)ORG
NetBSD.sbd/port-i386
First of all this recipe should look like this:
:0
* ^TOport-i386(_at_)NetBSD(_dot_)ORG
NetBSD.sbd/port-i386
That's in case the mail isn't explicitely to you (CC, BCC, etc.)
I am assuming here that it will look for the "NetBSD.sbd" directory
under my $MAILDIR
but it does not. If I explicitely put in this entry:
:0
* ^To(_dot_)*port-i386(_at_)NetBSD(_dot_)ORG
$MAILDIR/NetBSD.sbd/port-i386
I'll venture a guess that the directory you want to write to doesn't
exist. The rule is that if you're writing to a directory it has to exist.
A folder will be created by Procmail, but directories won't.
Cheers,
Bernard