Skip to content

feat(email): add skip_attachments option via config.yaml#1536

Merged
teknium1 merged 2 commits into
mainfrom
hermes/hermes-81c07511
Mar 16, 2026
Merged

feat(email): add skip_attachments option via config.yaml#1536
teknium1 merged 2 commits into
mainfrom
hermes/hermes-81c07511

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Based on PR #1521 by @an420eth — reimplemented to use config.yaml instead of env var.

Config

platforms:
  email:
    skip_attachments: true

Reads from PlatformConfig.extra (same pattern as Slack's reply_broadcast, WhatsApp's bridge_port, etc.). Default is false — existing behavior unchanged.

When enabled, all attachment/inline parts are skipped before payload decoding. Useful for malware protection and bandwidth savings.

Test plan

919 gateway tests pass.

Adds a config.yaml-driven option to skip email attachments in the
gateway email adapter. Useful for malware protection and bandwidth
savings.

Configure in config.yaml:
  platforms:
    email:
      skip_attachments: true

Based on PR #1521 by @an420eth, changed from env var to config.yaml
(via PlatformConfig.extra) to match the project's config-first pattern.
@teknium1 teknium1 merged commit 8758e2e into main Mar 16, 2026
2 checks passed
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.

1 participant