From owner-freebsd-ports@FreeBSD.ORG Mon Sep 26 07:44:19 2011 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E88851065674 for ; Mon, 26 Sep 2011 07:44:19 +0000 (UTC) (envelope-from conrads@cox.net) Received: from eastrmfepo103.cox.net (eastrmfepo103.cox.net [68.230.241.215]) by mx1.freebsd.org (Postfix) with ESMTP id 910028FC17 for ; Mon, 26 Sep 2011 07:44:19 +0000 (UTC) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmfepo103.cox.net (InterMail vM.8.01.04.00 201-2260-137-20101110) with ESMTP id <20110926074356.IGMV3815.eastrmfepo103.cox.net@eastrmimpo01.cox.net>; Mon, 26 Sep 2011 03:43:56 -0400 Received: from serene.no-ip.org ([98.164.86.236]) by eastrmimpo01.cox.net with bizsmtp id dKjv1h00A55wwzE02Kjwh7; Mon, 26 Sep 2011 03:43:56 -0400 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020208.4E802D3C.0032,ss=1,re=0.000,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=1.1 cv=kweOr8hB1ys3B+Zj7Lpdl4nenZeOz2KuAsXcmmON/bg= c=1 sm=1 a=a6EHAwk3pj8A:10 a=G8Uczd0VNMoA:10 a=kj9zAlcOel0A:10 a=uAbGmPAyUfLL1M3oYAsfuA==:17 a=s1O25tkdAAAA:8 a=6I5d2MoRAAAA:8 a=kviXuzpPAAAA:8 a=BZ3WAMxH7V8O_Pms5UQA:9 a=63fmBJotFcGhNzel1doA:7 a=CjuIK1q_8ugA:10 a=JqEFNSt_BU0A:10 a=OyOq_G8mXAEA:10 a=SV7veod9ZcQA:10 a=4vB-4DCPJfMA:10 a=uAbGmPAyUfLL1M3oYAsfuA==:117 X-CM-Score: 0.00 Authentication-Results: cox.net; none Received: from cox.net (localhost [127.0.0.1]) by serene.no-ip.org (8.14.5/8.14.5) with ESMTP id p8Q7htMK022320; Mon, 26 Sep 2011 02:43:55 -0500 (CDT) (envelope-from conrads@cox.net) Date: Mon, 26 Sep 2011 02:43:50 -0500 From: "Conrad J. Sabatier" To: Warren Block Message-ID: <20110926024350.4e881c1b@cox.net> In-Reply-To: References: X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: Replacing procmail with maildrop X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Sep 2011 07:44:20 -0000 On Sun, 25 Sep 2011 22:01:13 -0600 (MDT) Warren Block wrote: > Recent discussion here about the desirability of replacing procmail > finally convinced me to switch to maildrop. It turned out to be > relatively painless. I took some notes that may be helpful for > others considering the change: > > http://www.wonkity.com/~wblock/docs/html/maildrop.html Thank you for that! I've been reluctant to switch from procmail to anything else just yet (although I know I'll have to do so eventually, if this port is going to be expired), but these tips you've provided certainly will help. I'm just wondering, though, if you could offer any advice on how to convert something like the following procmail recipe I use for my FreeBSD mailing lists. I like to store my FreeBSD lists each under a separate MH folder under $MAILDIR/FreeBSD, so the following recipe strips off everything outside the angle brackets in the List-Id header (including the brackets themselves, of course), and then the trailing ".freebsd.org" and leading "freebsd-" and from the actual list name, to derive the correct folder name. So, for instance. the list name "freebsd-ports.freebsd.org" winds up as the folder name "ports". One problem is, without procmail's "formail" utility, how to extract and strip the List-Id header. Does maildrop include a tool similar to formail? Also, can one define a custom "to" command, in order to use the nmh "rcvstore" command? I've included only the parts of my .procmailrc needed to provide a clear picture of what's going on: # Path to executables from the nmh package NMH_PATH=/usr/local/libexec/nmh # Make sure everything we need is here PATH=/bin:/usr/bin:/usr/local/bin:${NMH_PATH} # Probably not necessary, but doesn't hurt either MAILDIR=${HOME}/Mail SHELL=/bin/sh # the nmh command to store mail into a folder STORE=rcvstore # extension to use for lockfiles LOCKEXT=.lock # recipe for FreeBSD lists :0 * ^List-Id:.*freebsd.org { ListId=`formail -c -x List-Id: | \ sed -e 's/^.*.*$//' \ -e 's/\.freebsd\.org//' \ -e 's/^freebsd-//'` :0:FreeBSD$LOCKEXT | $STORE +FreeBSD/${ListId} } Thanks in advance for any help! -- Conrad J. Sabatier conrads@cox.net