Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Jul 2003 17:48:32 -0400
From:      Paul Chvostek <paul+fbsd@it.ca>
To:        freebsd-questions@freebsd.org
Subject:   Re: Procmail Recipie For FreeBSD Lists?
Message-ID:  <20030703214832.GA27829@mail.it.ca>
In-Reply-To: <023f01c341a9$d0b92960$6e2a6ba5@lc.ca.gov>
References:  <20030703173754.GA7425@mail.it.ca> <023f01c341a9$d0b92960$6e2a6ba5@lc.ca.gov>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 03, 2003 at 02:26:49PM -0700, Drew Tomlinson wrote:
> >
> >   :0
> >   * ^List-Id:[^<]+<freebsd-\/[^.]+
> >   FreeBSD/$MATCH/
>
> Thanks for pointing out my oversight and all of the help so far.  I've
> added the "/" and now my recipe is:
>
> :0
> * ^List-Id:[^<]+<freebsd-\/[^.]+
> /Maildir/FreeBSD/$MATCH/

You're storing your Maildir in the root directory of the server?

> However I get these messages from the procmail log:
>
> procmail: Matched "test"
> procmail: Match on "^List-Id:[^<]+<freebsd-\/[^.]+"
> procmail: Unable to treat as directory "/Maildir/FreeBSD/test"
> procmail: Assigning "LASTFOLDER=/Maildir/FreeBSD/test"
> procmail: Opening "/Maildir/FreeBSD/test"
> procmail: Error while writing to "/Maildir/FreeBSD/test"

It looks as if procmail doesn't have permissions to create directories
in the root directory of your server.  That's a Good Thing.

> I've tried without the leading "/", without the Maildir, and without
> "/Maildir/" but I keep getting the same type of error.  Maildir is owned
> by me and is mode 700.

That's the right mode, but think about where the directory is, and where
procmail wants to find out.  Look in the procmail documentation (manpage
for procmailrc) for variables like $DEFAULT, $MAILDIR, $HOME, etc.

> If the mailbox is specified  to  be an  MH  folder  or  maildir  folder,
> procmail will create the necessary directories if they don't exist,
> rather than treat  the  mailbox  as  a non-existent filename.
>
> I feel I am close.  Can anyone enlighten me and point out what I'm
> missing?

Remember that paths that start with a / are absolute, and all other
paths are relative to $MAILDIR.

-- 
  Paul Chvostek                                             <paul@it.ca>
  it.canada                                            http://www.it.ca/
  Free PHP web hosting!                            http://www.it.ca/web/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030703214832.GA27829>