Repository navigation
feat(channels): add a subject label to email channels - #159
Merged
Merged
Conversation
An email channel can carry config.subject_label, which replaces "maintenant" between the brackets of every subject: alert, resolution and test. The test email now reads [<label>] TEST: Test notification. The label is trimmed, limited to 64 characters and refused when it holds a control character, on the REST API and the MCP tools. The channel wizard and the edit form get a Subject label field, and the edit form now shows the error returned by the server.
btouchard
force-pushed
the
049-email-subject-prefix
branch
from
October 24, 2026 14:59
d9d88b1 to
105bacc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An email channel can carry a subject label, set in the channel wizard, the edit form, the REST API (
config.subject_label) or the MCP channel tools. It replacesmaintenantbetween the brackets of every subject:[prod-paris] ALERT: <message>[prod-paris] RESOLVED: <message>[prod-paris] TEST: Test notificationWhy
With several instances sending to the same mailbox, the subject is the only thing a mail rule can sort on. The test email used a different subject from the alerts, so a rule that caught one missed the other.
Behaviour
[maintenant] TEST: Test notification.400 VALIDATION_ERROR, and the channel keeps its previous label.configkeeps the stored label.No migration: the label lives in the existing
configcolumn.