Skip to content

Commit 5ac27ba

Browse files
committed
Decode encoded attachments
1 parent 965ed47 commit 5ac27ba

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

0 commit comments

Comments
 (0)