Skip to content

Commit f6e9c2b

Browse files
committed
Handle text/enriched; as text
ruby-dev: 835
1 parent 2a1e9bf commit f6e9c2b

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
@@ -72,7 +72,7 @@ def from_mail(mail, list, list_seq)
7272
attachments.attach(io: file, filename: part.filename, content_type: part.content_type)
7373
else
7474
case part.content_type.downcase
75-
when /^text\/plain/
75+
when /^text\/plain/, /text\/enriched;/
7676
(self.body ||= '') << Kconv.toutf8(part.body.raw_source)
7777
when /^text\/html;/
7878
(self.html_body ||= '') << Kconv.toutf8(part.body.raw_source)

0 commit comments

Comments
 (0)