mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 10:19:40 +00:00
Two behaviors in the mail gem collide: 1. Attachments are added as extra parts at the top level, 2. When there are both text and html parts, the content type is set to 'multipart/alternative'. Since attachments aren't alternative renderings, for emails that contain attachments and both html and text parts, some coercing is necessary.