From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 20:46:47 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 0E07516A41F for ; Thu, 29 Dec 2005 20:46:47 +0000 (GMT) (envelope-from lalev@sv-bg.com) Received: from mail.sv-bg.com (ns.sv-bg.com [213.222.60.18]) by mx1.FreeBSD.org (Postfix) with SMTP id EF34243D48 for ; Thu, 29 Dec 2005 20:46:45 +0000 (GMT) (envelope-from lalev@sv-bg.com) Received: (qmail 75529 invoked by uid 1010); 29 Dec 2005 22:49:13 -0000 Received: from unknown (HELO ?192.168.1.12?) (lalev@sv-bg.com@213.222.60.195) by mail.sv-bg.com with SMTP; 29 Dec 2005 22:49:13 -0000 Message-ID: <43B44B25.6030203@sv-bg.com> Date: Thu, 29 Dec 2005 22:46:29 +0200 From: Angelin Lalev User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <43B2729B.1030203@sv-bg.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: qmail + vpopmail + 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: Thu, 29 Dec 2005 20:46:47 -0000 Michael P. Soulier wrote: >On 12/28/05, Angelin Lalev wrote: > > >>But now my friend's clients want all mail that is tagged as spam >>(in my case, prefixed with "[SPAM]" in the subject) moved to >>separate courier imap folder (for example .SPAM). >>I figured out (maybe I make error here) that I need procmail >>to deliver the mail to the different courier-imap folders in the Maildir. >>I couldn't find on the net clear algorithm that does that. (or at least >>I failed reproducing it). >>Anyone could help? >> >> > >This is up to the end user to do. My $HOME/.qmail looks like so > >| preline procmail ~/.procmailrc > >>From there, you can filter in .procmailrc like... > >:0 >^Subject:.*SPAM >$MAILDIR/junkmail/ > >where MAILDIR=$HOME/Maildir, or some other appropriate place for the user's MUA. > > > > Thanks very much for the advice. I've tried something like that, but in the end of .procmailrc file I've piped the "regular" messages to vdelivermail, instead of delivering them directly (stupid, wasn't it :-)). I'm sure that it would work even that way, if I used -p option and correct paths in .procmailrc file. Anyway, I've read in the net that there is some incompatibility of exit codes between procmail and qmail. Since I was not sure if that's fixed, had no time to dig into the documentation and I was working on production system, decided to use maildrop, which did the job nicely. But I'm still curious if that incompatibility is fixed ...