ryanb / letter_opener

Preview mail in the browser instead of sending.
MIT License
3.73k stars 237 forks source link

Save the raw email in .eml file #101

Closed nicolas-brousse closed 9 years ago

nicolas-brousse commented 9 years ago

I think it could be interesting to save the raw email into a .eml file in addition to the .html file(s).

nashby commented 9 years ago

@nicolas-brousse hey, thank you for the pull request but it looks like very a specific feature to me. Maybe you can make a separate gem that will support it though. Thanks again!

nicolas-brousse commented 9 years ago

I understand, but may be my PR is not complete.

If I complete it by adding a link in the html preview. A link to download the raw email. What do you think about it? I found useful sometimes to access simply the raw email. And whit this .eml format it's just the raw content.

Also it could be a tab to switch between the formatted and the raw content? Like mailcatcher gem do.

Let me know what do you think about and in function I'll update my PR or create a separate gem.