mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
If an attachment is configured of disposition type INLINE, and is referred to in HTML body parts, then some email clients can display images inside of an HTML email and refer to those attachments. Watcher already had support for inlined attachments, however this could not be configured from a watch, but just via the Java API. Also it was not tested. This commit changes the attachment to decide on creation if it should be inline or a regular attachment and adds a test. Relates elastic/elasticsearch#2381 Relates elastic/elasticsearch#2464 Closes elastic/elasticsearch#2557 Original commit: elastic/x-pack-elasticsearch@84935ffb18