mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #525] Possible tag problem #338
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#338
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 @gitgrub on GitHub (Jun 20, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/525
Some messages are tagged, and I dont know why.
This is part of the tags-config.yaml, originally for test purposes:
I can not find the string "tag me" in the raw message.
This is the download/raw message from the web UI:
(Sorry for the size, I did not find an option to attach a file here.)
@axllent commented on GitHub (Jun 20, 2025):
The "problem" here is that it is searching for messages containing the word "tag" and "me", not "tag me" as an exact match. In Mailpit you need quote your search as
"tag me"to find an exact phrase match. In yaml it works a little differently as quotes are used to define the value from the key, so to get what you are after you need to do this:This will search for an exact phrase match of
tag me.@gitgrub commented on GitHub (Jun 20, 2025):
Oh, thank you.
When creating the tags-config file, I searched the docs and found on this page the example
so I thought it would work this way.
@axllent commented on GitHub (Jun 20, 2025):
I see the confusion now and will update the documentation to give better examples and explanations. The tag filtering originally only supported 1:1 matches, however later also supported the same search syntax as the web UI. The current documentation doesn't make that clear.
@axllent commented on GitHub (Jun 21, 2025):
I have now added some additional information in the tagging documentation relating to phrase matching.
@gitgrub commented on GitHub (Jun 26, 2025):
Looks good, thank you.