Date: Tue, 07 Sep 2010 05:08:20 +0200 From: Peter Boosten <peter@boosten.org> To: freebsd-questions@freebsd.org Subject: Re: Regex Help For Procmail Message-ID: <4C85ACA4.80101@boosten.org> In-Reply-To: <20100907015124.GA21193@orange.esperance-linux.co.uk> References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <20100907015124.GA21193@orange.esperance-linux.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7-9-2010 3:51, Frank Shute wrote: > [snip] > I additionally don't like the look of your Maildir. It's quoted, you > should set MAILDIR in procmailrc, you should get rid of the space and > it should end in "new". Result: > > :0 > * ^From:.*famous-smoke\.com > .Shopping/Famous_Smoke/new I've actually never seen a recipe (either on the net, nor in the examples in procmailex suggesting this. The 'new' part is taken care of by procmail itself. > > I don't know what you're using for maildirmake but here's a script you > can adapt: > > ---- > > #!/bin/sh > # > # Usage: maildirmake <somemaildir> > > mkdir $1 > mkdir $1/new > mkdir $1/cur > mkdir $1/tmp > chown frank:frank $1/new > chown frank:frank $1/cur > chown frank:frank $1/tmp > chmod 700 $1 > chmod 700 $1/new > chmod 700 $1/cur > chmod 700 $1/tmp > > ---- > > You have to run it from where you keep your maildirs i.e MAILDIR Also something procmail takes care of automatically. I've never created any directory structure for procmail to be able to deliver email to it. Peter -- http://www.boosten.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C85ACA4.80101>