From owner-freebsd-questions@FreeBSD.ORG Wed Sep 24 14:24:33 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 D9BF716A4B3 for ; Wed, 24 Sep 2003 14:24:33 -0700 (PDT) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35E6C43FEC for ; Wed, 24 Sep 2003 14:24:33 -0700 (PDT) (envelope-from algould@datawok.com) Received: from 22-15.lctv-b4.cablelynx.com ([24.204.22.15] helo=yoda.datawok.com) by stork.mail.pas.earthlink.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.33 #1) id 1A2H7f-0002yj-00; Wed, 24 Sep 2003 14:24:31 -0700 From: "Andrew L. Gould" To: David.Bear@asu.edu, freebsd-questions@freebsd.org Date: Wed, 24 Sep 2003 16:24:28 -0500 User-Agent: KMail/1.5 References: <20030924135543.F16613@asu.edu> In-Reply-To: <20030924135543.F16613@asu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309241624.28741.algould@datawok.com> X-ELNK-Trace: ee791d459e3d6817d780f4a490ca69564776905774d2ac4b65cdeabd3600c8f4b8f4a75e171be787350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Subject: Re: advice re mail 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: Wed, 24 Sep 2003 21:24:34 -0000 On Wednesday 24 September 2003 03:55 pm, David Bear wrote: > I need to write a program the grabs mail from a standard mail folder > and processes it. > > The trouble is I have no idea what mail file format FreeBSD uses by > default. I am using postfix, and currently postfix is my mta and mda. > I will be adding procmail as the mda. I'm guessing procmail writes > the same kind of file the postfix does... but here I'm showing my > ignorance. > > I will be using python as my language and there are modules for MH, > maildir, mbox, and mailbox... Anyone have any recommended reading for > me to better understand what I need to do? At one point, I started writing a Python script to parse email and store various parts in a database. It was a low priority; so I didn't get very far. If you'd like to look at it, I'll try to find it. I started with the maildir format for ease; because each email is in its own file. Andrew Gould