Skip to content

MTC-10317 Add email exclusion by ID to event log cleanup command #32

Merged
MadlenF merged 5 commits into
mautic5-7from
MTC-10317_exclude-emails
Apr 17, 2026
Merged

MTC-10317 Add email exclusion by ID to event log cleanup command #32
MadlenF merged 5 commits into
mautic5-7from
MTC-10317_exclude-emails

Conversation

@patrykgruszka
Copy link
Copy Markdown
Contributor

@patrykgruszka patrykgruszka commented Apr 14, 2026

Summary

This PR adds the ability to exclude specific emails by ID from the event log cleanup command in the Housekeeping Bundle. This feature allows users to retain event logs for critical or protected email addresses while cleaning up others.

Changes

  • Added --exclude-emails argument to the EventLogCleanupCommand for specifying email IDs to exclude from cleanup
  • Improved argument parsing with better validation and handling of email exclusion parameters
  • Added comprehensive functional tests covering the new email exclusion functionality

The -e shortcut for --exclude-emails argument was not implemented, as it's already in use for --env

@patrykgruszka patrykgruszka requested a review from biozshock April 14, 2026 08:24
Copy link
Copy Markdown
Contributor

@biozshock biozshock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Thanks.

@MadlenF MadlenF merged commit 2c65e2b into mautic5-7 Apr 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants