search for: test_multiparts

Displaying 1 result from an estimated 1 matches for "test_multiparts".

2006 May 25
4
Does TMail support Nested Multipart Messages? (Repost)
...r/CHANGELOG), but I haven''t been able to get it working so far. Maybe I am doing something wrong here? I attached the sample mail. Here is the code to parse it: require File.dirname(__FILE__) + ''/../test_helper'' class TMailTest < Test::Unit::TestCase def test_multiparts assert raw = File.read("sample") assert mail = TMail::Mail.parse (raw) puts "body=!#{body_as_plain_text (mail)}!" end def body_as_plain_text(part) body = '''' if part.multipart? part.parts.each do |subpart| if subpa...