Skip to content

Commit 23183c8

Browse files
committed
Perhaps attachment file body should better not be decoded?
1 parent ee6f828 commit 23183c8

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
@@ -66,7 +66,7 @@ def from_mail(mail, list, list_seq)
6666
handle_body p
6767
end
6868
elsif part.attachment?
69-
file = StringIO.new(part.decoded)
69+
file = StringIO.new(part.body.raw_source)
7070
attachments.attach(io: file, filename: part.filename, content_type: part.content_type)
7171
else
7272
case part.content_type&.downcase

0 commit comments

Comments
 (0)