Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Sep 2003 16:24:28 -0500
From:      "Andrew L. Gould" <algould@datawok.com>
To:        David.Bear@asu.edu, freebsd-questions@freebsd.org
Subject:   Re: advice re mail
Message-ID:  <200309241624.28741.algould@datawok.com>
In-Reply-To: <20030924135543.F16613@asu.edu>
References:  <20030924135543.F16613@asu.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309241624.28741.algould>