Sven Riedel
2009-Jun-14 11:09 UTC
[Tmail-talk] TMail::Mail#from_addrs= not working as documented
Hi, according to the rdoc, #from_addrs should work as follows: mail = TMail::Mail.new mail.from_addrs = "Mikel <mikel at me.org>, another Mikel <mikel at you.org>" mail.from_addrs #=> [#<TMail::Address mikel at me.org>, #<TMail::Address mikel at you.org>] However, in irb I get: irb(main):001:0> require ''tmail'' => true irb(main):002:0> mail = TMail::Mail.new => #<TMail::Mail port=#<TMail::StringPort:id=0x..fdbcbaeb6> bodyport=nil> irb(main):003:0> mail.from_addrs = "Mikel <mikel at me.org>, another Mikel <mikel at you.org>" => "Mikel <mikel at me.org>, another Mikel <mikel at you.org>" irb(main):004:0> mail.from_addrs => ["Mikel <mikel at me.org>, another Mikel <mikel at you.org>"] ie the passed in addresses don''t get parsed, just set as is. #to_addrs seems to work as it should. This is with TMail 1.2.3.1, Ruby 1.8.7p72 Regards, Sven