feat: Add service-level IMAP email monitoring#4472
Open
annelson-rh wants to merge 1 commit intotarget:masterfrom
Open
feat: Add service-level IMAP email monitoring#4472annelson-rh wants to merge 1 commit intotarget:masterfrom
annelson-rh wants to merge 1 commit intotarget:masterfrom
Conversation
⚠️ This code was generated using Claude (AI-assisted development). Implements IMAP email monitoring for GoAlert services with OAuth 2.0 authentication, filter rules, and alert creation. Features: - Per-service IMAP configuration (host, port, mailbox, polling interval) - OAuth 2.0 authentication flow in UI for Gmail - Filter rules with pattern matching (exact, contains, regex) - Pattern matching on From, Subject, and To fields - Reply filtering option - Configurable alert content (headers, from, to, subject, body) - Email body parsing to extract clean text without MIME headers - 1-minute minimum polling interval with per-service tracking - Full UI for configuration and filter rule management Database: - Single migration: 20260213130000-imap-integration.sql - Tables: service_imap_config, imap_filter_rules, imap_processed_messages - Engine processing type: 'imap' GraphQL API: - Service.imapConfig and Service.imapFilterRules fields - Mutations for CRUD operations on config and filter rules - OAuth URL generation and token exchange mutations UI Components: - ServiceIMAPPage - main configuration page - ServiceIMAPConfigDialog - IMAP settings with OAuth flow - IMAPOAuthDialog - popup-based OAuth authentication - IMAPFilterRule dialogs - create/edit/delete filter rules - IMAPFilterRuleForm - reusable form component Testing: - Smoke test: test/smoke/imapmonitoring_test.go - Cypress integration test: web/src/cypress/e2e/imapMonitoring.cy.ts Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
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 IMAP email monitoring for GoAlert services with OAuth 2.0 authentication, filter rules, and alert creation.
Which issue(s) this PR fixes:
fixes: #4471
Features:
Database:
GraphQL API:
UI Components:
Testing:
Smoke test: test/smoke/imapmonitoring_test.go
Cypress integration test: web/src/cypress/e2e/imapMonitoring.cy.ts
Identified the issue which this PR solves.
Read the CONTRIBUTING document. (apologies for not opening feature request sooner! )
Code builds clean without any errors or warnings.
Added appropriate tests for any new functionality.
All new and existing tests passed.
Added comments in the code, where necessary.
Ran
make checkto catch common errors. Fixed any that came up.