Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add arbitrary header overrides for attachments #631

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

jarrodmoldrich
Copy link

@jarrodmoldrich jarrodmoldrich commented Oct 22, 2021

This allows bamboo adapters to be accept overriding headers for special
use cases. Updates to those adapters would be required to use this
functionality.

For e.g., in the specific use-case of adding inlined attachments, some
special case headers are required. Now it's possible to add
X-Attachment-Id and override the Content-Disposition header with
inline to permit the proper display of inlined content, without an
email client showing them as explicit attachments for the user to
download.

Closes #502 #430

Related PRs:
kalys/bamboo_ses#43
DockYard/elixir-mail#137

This allows bamboo adapters to be accept overriding headers for special
use cases. Updates to those adapters would be required to use this
functionality.

For e.g., in the specific use-case of adding inlined attachments, some
special case headers are required. Now it's possible to add
`X-Attachment-Id` and override the Content-Disposition header with
`inline` to permit the proper display of inlined content, without an
email client showing them as explicit attachments for the user to
download.
@doomspork
Copy link
Member

Hi @jarrodmoldrich! Now that BEAM Community is taking over Bamboo we're working through these older PRs. Would you like to update this PR or should we close?

@jarrodmoldrich
Copy link
Author

@doomspork Hi there! I probably won't be testing this against SES as I've retired the infra I was using, but I'll get the PR up-to-date and to a working state in the coming weeks.

@doomspork doomspork changed the title Add arbitrary header overrides for attachments feat: Add arbitrary header overrides for attachments Sep 30, 2024
@doomspork
Copy link
Member

Amazing, thank you @jarrodmoldrich!

…aders

Keep headers: key/value in tests after merge conflict
@jarrodmoldrich jarrodmoldrich requested a review from a team as a code owner November 16, 2024 06:14
@jarrodmoldrich
Copy link
Author

@doomspork This is ready for another look (assuming it passes your CI)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add attachment content-disposition and content-id fields
2 participants