https://github.com/mikel/mailmail
のgemを使用しています
私は生のメールデータを解析するためにそれを使用します:例えば
require 'mail'
maildata = Mail.new(body) #where body is the raw text of an email message
#from there I can see info such as
p maildata.body.decoded #displays the decoded email body
p maildata.from #shows who the email is from
電子メールがこれを行うための組み込みの方法であるplaintext
かどうかをどのように判断しますか?html