Library for extracting new content from email reply messages?

Terry Reedy tjreedy at udel.edu
Fri Jan 16 02:26:26 EST 2009


Bernard Rankin wrote:
> Hello,
> 
> I'm looking to build a simple mostly email-based trouble ticket system.  (I've yet to find a ready-made python solution that is both simple and well designed....)
> 
> Is there a Python email parsing library that can assist in extracting new content from messages that have been sent in reply?
> 
> That is, since many users will just hit the email client's reply button to communicate with the system, I need some way to filter out the quoted "original message".
> 
> Certainly, 100% accuracy can't be had, since there are so many email programs out there, but we could as least handle the very popular ones. 

If the email quotes original text as above, or has 'Original message 
follows' section, then non-quoted stuff should be new.  You could also 
use the difflib module.




More information about the Python-list mailing list