parsing emails

Paul McGuire bogus at bogus.net
Sat Mar 20 10:22:43 EST 2004


"Michele Simionato" <michele.simionato at poste.it> wrote in message
news:95aa1afa.0403200029.6859e390 at posting.google.com...
> I use Mozilla or Netscape, so my emails are stored in the nsmail
> directory
> or the Mozilla's equivalent. What's the simplest way to look at them
> and
> extract the mails with a given subject? In principle I could use a
> regular expression, but I bet there are better solutions already
> available.
> Second question: are Mozilla and Netscape compatible, i.e. are the
> emails stored with the same format and can I use the same extraction
> method on both?
>
> TIA,
>
>
>              Michele Simionato
Michele -

Python 2.3 introduced a new email package, that has an email.Parser module.
I've not used it myself, but it sounds worth looking into.

-- Paul





More information about the Python-list mailing list