Morten
2008-Jun-06 07:45 UTC
[Tmail-talk] TMail cannot determine content type for attachment
Hi guys,
TMail returns nil on the content type for the attached mail.
Loading development environment (Rails 2.0.2)
>> mail = TMail::Mail.parse(IO.read("#{RAILS_ROOT}/test/fixtures/
inbound_mailer/attachment_type.eml"))
=> #<TMail::Mail port=#<TMail::StringPort:id=0x1051a4e>
bodyport=nil>
>> mail.attachments.first
=> #<TMail::Attachment:0x207b9ec>
>> mail.attachments.first.original_filename
=> "Picture 7.png"
>> mail.attachments.first.content_type
=> nil
>>
This is not a general problem I see, any ideas what''s wrong with the
email (or tmail)? Thanks.
Morten
-------------- next part --------------
An embedded message was scrubbed...
From: Wiffle Wonkle <someone at wiffleplace.com>
Subject: Attachment content type nil
Date: Thu, 5 Jun 2008 10:53:02 -0700
Size: 106846
URL:
<http://rubyforge.org/pipermail/tmail-talk/attachments/20080606/584cf857/attachment-0001.eml>
-------------- next part --------------
Mikel Lindsaar
2008-Jun-06 14:54 UTC
[Tmail-talk] TMail cannot determine content type for attachment
On Fri, Jun 6, 2008 at 5:45 PM, Morten <lists at kikobu.com> wrote:> Hi guys, > TMail returns nil on the content type for the attached mail. >Thanks for this. This is definately a bug. I''m a bit tied up, but I''ll try and look into it soon. If you want to scratch an itch, download trunk and give it a whirl. There are two broken tests in trunk right now though. Either way, could you open a ticket on the rubyforge? tmail.rubyforge.org will get you towards the tracker :) Click on the tracker menu option. Mikel http://lindsaar.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/tmail-talk/attachments/20080607/e09630ee/attachment.html>