mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #410] Tagging filters with regex support #266
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @stefankluempers on GitHub (Dec 14, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/410
We use a central Mailpit instance to support various projects. Each project uses a project-specific mail domain.
It would be very helpful if automatic tagging based on the mail domain could be configured. Can the filter definition be extended to include regex support with matching groups for tag definition?
To use the local part or mail domain for tag definition, the configuration could be as follows, for example:
filters:
@axllent commented on GitHub (Dec 14, 2024):
Hi @stefankluempers. No, unfortunately this is not possible. The tag matches are ultimately mapped to internal SQL queries, so regex is not supported.
As a suggestion, you could configure your projects to add an X-Tags header to the emails they send.
@stefankluempers commented on GitHub (Dec 14, 2024):
Hi Ralph, thanks for your quick response. X-Tags headers seam to be a good alternative to my suggestion.