# Parsing HTML Email with Inline Images

**URL:** <https://www.ruby-forum.com/t/parsing-html-email-with-inline-images/149285>\
**Category:** Rails\
**Created:** [September 23, 2008, 9:41am UTC](https://www.ruby-forum.com/t/parsing-html-email-with-inline-images/149285 "2008-09-23T09:41:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eli.lindner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e9a140/32.png) [@eli.lindner](https://www.ruby-forum.com/u/eli.lindner)\
**Post date:** [September 23, 2008, 9:41am UTC](https://www.ruby-forum.com/t/parsing-html-email-with-inline-images/149285/1 "2008-09-23T09:41:52Z")

</div>

Hi All,

Has somebody come up with a method of parsing multipart html email  
with inline embedded images?

Removing the images as attachments is easy enough, but I’d like to  
then embed img tags (Using textile) that relate back to the attachment  
so that they remain inline with the body text.

Has thius been done before, or would I be best off using a bunch of  
regex and parsing it that way?

Thanks,
