Mail gem - how to clean up the body string

前端 未结 4 1866
失恋的感觉
失恋的感觉 2021-02-05 19:06

I\'m trying to read an email using ruby mail gem. But mail.body.decoded returns me not just the body message. How can I clean up this body message and remove unwan

4条回答
  •  梦如初夏
    2021-02-05 19:39

    Add the mail gem and just use email body format with mail.parts[1].body.decoded.

提交回复
热议问题