mail
mail copied to clipboard
Body text goes missing when using add_file
This is just a failing test so far, as I'm not sure if this is actually a problem or I'm just doing something wrong! 🙇
It seems that since v 2.8, using add_file causes the body text to go missing:
m = Mail.new
m.body = "Body text"
m.body.to_s # => "Body text"
m.add_file(:filename => "attachment.data", :content => "a")
m.body.to_s # => ""
Am happy to try and fleshing this out to a fix, but wanted to first double check whether this is indeed expected behavior of not.
The behavior does not seem to occur in 2.7.
It’s rather odd that the truffleruby head build succeeded.