Skip to content

Commit 7164315

Browse files
committed
Handle some more content_types
1 parent 501693d commit 7164315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/message.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def from_mail(mail, list, list_seq)
8585
(self.body ||= ''.dup) << Kconv.toutf8(part.body.raw_source)
8686
when /^text\/html/
8787
(self.html_body ||= ''.dup) << Kconv.toutf8(part.body.raw_source)
88-
when 'application/octet-stream', 'image/gif'
88+
when 'application/octet-stream', 'image/gif', 'application/rtf', 'message/delivery-status'
8989
# there can be an attachment with nil part.filename (which is equivalent to part.attachment?).
9090
file = StringIO.new(part.decoded)
9191
attachments.attach(io: file, filename: part.filename || 'noname', content_type: part.content_type)

0 commit comments

Comments
 (0)