From owner-freebsd-questions@FreeBSD.ORG Wed Dec 17 16:06:12 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 E61C716A4CE for ; Wed, 17 Dec 2003 16:06:12 -0800 (PST) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2029E43D41 for ; Wed, 17 Dec 2003 16:06:10 -0800 (PST) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id 2340E124; Wed, 17 Dec 2003 18:06:09 -0600 (CST) Date: Wed, 17 Dec 2003 18:06:09 -0600 From: Tillman Hodgson To: freebsd-questions@freebsd.org Message-ID: <20031218000609.GT83116@seekingfire.com> References: <20031218002214.GA80480@bsdjunky.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031218002214.GA80480@bsdjunky.homeunix.org> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers User-Agent: Mutt/1.5.5.1i Subject: Re: Mutt + Procmail Filters 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, 18 Dec 2003 00:06:13 -0000 On Wed, Dec 17, 2003 at 06:22:14PM -0600, Bryan Cassidy wrote: > I have just started using Mutt again. I would rather use Mutt > if I can just setup my filters like I have in Sylpheed. I don't > know if this is what Procmail filtering is suppose to do but > this is what I want and I am very confused about setting up > mail filters in Mutt. Have no clue where to even start with > setting up config files. When I first load Mutt (1.5 btw) I > want to see say a group Called FreeBSD-Questions, FreeBSD-Hardware > and FreeBSD-Hackers. When I scroll to FreeBSD-Hackers I want > all the e-mail that is sent to the -hacker mailing list to be > in that. Is this what Procmail does or am I suppose to load > the filters some other way? That is the way I want to do it > but if I can't could someone help with me setting this up. I > would really appreciate it. I've been strugling with Mutt + > Procmail for a couple days now and I am just more confused. It sounds like you got the idea figured out correctly. All that's left is the details ;-) Generally, when I want to create a new folder, I take an existing email and (s)ave it to a new folder name. Mutt takes care of creating my new Maildir (the mailbox format that I use) for me. Then I add a rule to my ~/.mailfilter (Note: maildrop, not procmail) to sort mail for this new folder. You also need to either set up procmail globally or per-user. Per-user is simple: just put this in their ~/.forward file: | /full/path/to/procmail Rather than procmail, which is very common but has an arcane syntax, consider maildrop (in the ports tree. The syntax is quite a bit easier to read and it supports Maildir format natively. Here's a sample from my ~/.mailfilter: # Definite default mailbox DEFAULT="/exports/tillman/Maildir" # # Automated emails from the Seekingfire network if (/^From: .*root@.*seekingfire*/) to /exports/tillman/Maildirs/system/ # FreeBSD mailing lists if (/^(From|To|cc): .*freebsd\.org/) to /exports/tillman/Maildirs/freebsd/ # Zebra & Quagga lists if (/^(From|To|cc): .*zebra\.org/) to /exports/tillman/Maildirs/zebra/ if (/^(From|To|cc): .*lists\.quagga\.net/) to /exports/tillman/Maildirs/zebra/ etc ... -T -- First time I've gotten a programming job that required a drug test. I was worried they were going to say "you don't have enough LSD in your system to do Unix programming". - A.S.R. quote (Paul Tomblin)