Skip to content

Commit

Permalink
Improved email processing for attachments without <> in Content-ID he…
Browse files Browse the repository at this point in the history
…ader.
  • Loading branch information
martini committed Apr 26, 2017
1 parent 17f6444 commit 5ee2c5b
Show file tree
Hide file tree
Showing 3 changed files with 966 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/channel/email_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def _get_attachment(file, attachments, mail)

# cleanup content id, <> will be added automatically later
if headers_store['Content-ID']
headers_store['Content-ID'].gsub!(/^</, '').gsub!(/>$/, '')
headers_store['Content-ID'].gsub!(/^</, '')
headers_store['Content-ID'].gsub!(/>$/, '')
end

# workaround for mail gem
Expand Down
Loading

0 comments on commit 5ee2c5b

Please sign in to comment.