ActionMailer, TMail: any way to strip quoted reply in receiv

I’m handling incoming mails with ActionMailer::receive. It’s working
great, but I’d like to strip out the quoted reply from the email. I
wrote some regexp thing to do it for the standard ascii mail where it
puts ‘>’ in front of the quoted text, but people who use html mail
seem to have a multitude of different ways of quoting the original
mail in their replies.

I can parse these out as I find new ones, but I was wondering if
something was already built into TMail or ActionMailer to do this. I
looked through some of the TMail source and couldn’t find anything.

Thanks.

patrick

On 5 Sep 2006, at 17:19, Patrick Crosby wrote:

looked through some of the TMail source and couldn’t find anything.
TMail is fairly dumb - it’s just intended to give you access to the
various segments of the email, without trying to interpret them in
any special way. I’m not aware of any publicly available ruby stuff
to do this for you. You might start with rfc3676, which is the
specification on how this is supposed to be done. Whether mail
clients correctly follow it or not is a different question…
http://www.rfc-archive.org/getrfc.php?rfc=3676