Add EmailPlugin for email notifications (issue #89, Phase 3)#93
Merged
Conversation
Implements email notification channel using Quarkus ReactiveMailer,
following the same patterns as Horreum's EmailPlugin.
Features:
- ReactiveMailer with configurable timeout (h5m.mail.timeout, default 15s)
- Sends both HTML and plain text bodies (multipart)
- Configurable subject prefix (h5m.mail.subject.prefix, default [h5m])
- Custom subject via config: {"subject": "ALERT: {folderName}"}
- Custom body via template with {folderName}, {nodeName}, {nodeType},
{changeCount} placeholders
- Multiple recipients: {"to": "alice@example.com,bob@example.com"}
- Format-aware change details: FixedThreshold shows value/bound/direction,
RelativeDifference shows ratio/previous/last
- HTML body with table of changes including fingerprint and details
- Mock mode enabled by default for dev/test; configure SMTP via
MAILER_HOST, MAILER_PORT, MAILER_FROM environment variables
Dependencies:
- Added quarkus-mailer
Tests (14):
- Validation: valid config, multiple recipients, null, empty,
missing to field, invalid email format
- Send: delivery, change details in body, multiple recipients,
custom subject with prefix, custom template, fixed threshold
formatting, relative difference formatting
- Method identity check
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.
Implements email notification channel using Quarkus ReactiveMailer, following the same patterns as Horreum's EmailPlugin.
Features:
Dependencies:
Tests (14):