From owner-freebsd-questions@FreeBSD.ORG Tue Sep 7 03:09:02 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D91281065697 for ; Tue, 7 Sep 2010 03:09:02 +0000 (UTC) (envelope-from peter@boosten.org) Received: from smtpq2.gn.mail.iss.as9143.net (smtpq2.gn.mail.iss.as9143.net [212.54.34.165]) by mx1.freebsd.org (Postfix) with ESMTP id 6A6358FC18 for ; Tue, 7 Sep 2010 03:09:02 +0000 (UTC) Received: from [212.54.34.140] (helo=smtp9.gn.mail.iss.as9143.net) by smtpq2.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OsoYE-0003Jj-0z for freebsd-questions@freebsd.org; Tue, 07 Sep 2010 05:08:50 +0200 Received: from [84.25.59.18] (helo=ra.egypt.nl) by smtp9.gn.mail.iss.as9143.net with esmtp (Exim 4.69) (envelope-from ) id 1OsoYD-0007qq-Id for freebsd-questions@freebsd.org; Tue, 07 Sep 2010 05:08:49 +0200 Received: from [127.0.0.1] (xp.egypt.nl [192.168.13.35]) by ra.egypt.nl (Postfix) with ESMTP id 8AC7A39856 for ; Tue, 7 Sep 2010 05:08:22 +0200 (CEST) Message-ID: <4C85ACA4.80101@boosten.org> Date: Tue, 07 Sep 2010 05:08:20 +0200 From: Peter Boosten User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C814262.5060504@mykitchentable.net> <4C814634.1000003@gmail.com> <4C8164C7.9000107@mykitchentable.net> <4C83C65B.6060508@mykitchentable.net> <20100907015124.GA21193@orange.esperance-linux.co.uk> In-Reply-To: <20100907015124.GA21193@orange.esperance-linux.co.uk> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-ZiggoSMTP-MailScanner-Information: Please contact the ISP for more information X-ZiggoSMTP-MailScanner-ID: 1OsoYD-0007qq-Id X-ZiggoSMTP-MailScanner: Found to be clean X-ZiggoSMTP-MailScanner-SpamCheck: geen spam, SpamAssassin (niet cached, score=0.314, vereist 5, BAYES_40 -0.18, CM_META_TB_NOARR 0.50, SPF_PASS -0.00) X-ZiggoSMTP-MailScanner-From: peter@boosten.org X-Spam-Status: No Subject: Re: Regex Help For Procmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 03:09:02 -0000 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 > > 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