mail icon indicating copy to clipboard operation
mail copied to clipboard

Body text goes missing when using add_file

Open balvig opened this issue 3 years ago • 1 comments

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.

balvig avatar Dec 13 '22 14:12 balvig

It’s rather odd that the truffleruby head build succeeded.

sebbASF avatar Dec 14 '22 09:12 sebbASF