Changed attachment preference keys according to models/channel/email_parser.rb.

This commit is contained in:
Thorsten Eckel 2015-07-21 22:04:57 +02:00
parent 70e5d349bd
commit 280f1402cd

View file

@ -672,9 +672,9 @@ module Import::OTRS
filename: Base64.decode64(attachment['Filename']), filename: Base64.decode64(attachment['Filename']),
data: Base64.decode64(attachment['Content']), data: Base64.decode64(attachment['Content']),
preferences: { preferences: {
content_type: attachment['ContentType'], 'Mime-Type' => attachment['ContentType'],
content_id: attachment['ContentID'], 'Content-ID' => attachment['ContentID'],
:'content-alternative' => attachment['ContentAlternative'], 'content-alternative' => attachment['ContentAlternative'],
}, },
created_by_id: 1, created_by_id: 1,
) )