Standard module for parsing emails?

Diez B. Roggisch deets at nospam.web.de
Wed Jul 30 09:10:19 EDT 2008


Phillip B Oldham wrote:

> Is there a standard library for parsing emails that can cope with the
> different way email clients quote?

AFAIK not - as unfortunately that's something the user can configure, and
thus no atrocity is unimaginable. Hard to write a module for that...

All you can try is to apply a heuristic like "if there are lines all
starting with a certain prefix that contains non-alphanumeric characters".
But then if the user configures to quote using 

XX

you're doomed...



Diez



More information about the Python-list mailing list