From owner-freebsd-questions@FreeBSD.ORG Thu Jul 3 14:48:49 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A969537B401 for ; Thu, 3 Jul 2003 14:48:49 -0700 (PDT) Received: from haggis.it.ca (haggis.it.ca [216.126.86.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id E220443FDF for ; Thu, 3 Jul 2003 14:48:48 -0700 (PDT) (envelope-from paul@haggis.it.ca) Received: from haggis.it.ca (paul@localhost [127.0.0.1]) by haggis.it.ca (8.12.9/8.12.9) with ESMTP id h63LmWU9035056 for ; Thu, 3 Jul 2003 17:48:32 -0400 (EDT) (envelope-from paul@haggis.it.ca) Received: (from paul@localhost) by haggis.it.ca (8.12.9/8.12.6/Submit) id h63LmWEg035055 for freebsd-questions@freebsd.org; Thu, 3 Jul 2003 17:48:32 -0400 (EDT) (envelope-from paul) Date: Thu, 3 Jul 2003 17:48:32 -0400 From: Paul Chvostek To: freebsd-questions@freebsd.org Message-ID: <20030703214832.GA27829@mail.it.ca> References: <20030703173754.GA7425@mail.it.ca> <023f01c341a9$d0b92960$6e2a6ba5@lc.ca.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <023f01c341a9$d0b92960$6e2a6ba5@lc.ca.gov> User-Agent: Mutt/1.4.1i Subject: Re: Procmail Recipie For FreeBSD Lists? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 21:48:49 -0000 On Thu, Jul 03, 2003 at 02:26:49PM -0700, Drew Tomlinson wrote: > > > > :0 > > * ^List-Id:[^<]+ > 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:[^<]+ /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:[^<]+ 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 it.canada http://www.it.ca/ Free PHP web hosting! http://www.it.ca/web/