advice re mail

Andrew L. Gould algould at datawok.com
Wed Sep 24 14:24:34 PDT 2003


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


More information about the freebsd-questions mailing list