Bugs: Browse | Submit New | Admin

[#20547] No content type returned for attachment

Date:
2008-06-06 14:59
Priority:
3
Submitted By:
Morten Primdahl (mortenp)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
No content type returned for attachment

Detailed description
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.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2008-07-06 00:33
Sender: Mikel Lindsaar

Have been working elsewhere, will be looking into these problems
shortly.

Attached Files:

Name Description Download
attachment_type.eml Download

Changes:

Field Old Value Date By
File Added3797: attachment_type.eml2008-06-06 14:59mortenp