Fix the rake task and importer instead

This commit is contained in:
Gerhard Schlager
2018-10-17 16:48:09 +02:00
parent ee18d9ace0
commit 341836eb42
3 changed files with 6 additions and 5 deletions

View File

@ -131,7 +131,8 @@ module ImportScripts::Mbox
if row['attachment_count'].positive?
receiver = Email::Receiver.new(row['raw_message'])
body = receiver.add_attachments(body, user_id)
user = User.find(user_id)
body = receiver.add_attachments(body, user)
end
body << Email::Receiver.elided_html(elided) if elided.present?