fphilipe/premailer-rails — pull request #63 by fphilipe (2013-04-03 15:47:38+00:00)
Title: Add support for attachments

Or better, just don't mess with the attachments. The solution to the
problem is the following:

If no text generation is required (disabled or text part present):
- replace the html part with the processed html part

If text generation is required:
- create a multipart/alternative that containing an html part with the
processed html and a text part containing the generated text
- replace the html part with the multipart/alternative part

Special care needs to be taken when the email contains only the root
part (the message itself), then the properties of the newly generated
part (html part or multi part) need to be copied over to the message.

This would close all issues related to this, namely #21, #24, #25, #51, #62. Would be glad if some of you could take it to a spin and see if everything is working as expected.