Skip to content

Conversation

@printminion-co
Copy link

@printminion-co printminion-co commented Nov 28, 2025

@printminion-co printminion-co force-pushed the mk/dev/delete_ionosmail_on_ncmail_deletion branch 6 times, most recently from 4bc87fc to 7a12f7a Compare December 4, 2025 12:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements automatic deletion of IONOS mailboxes when their corresponding Nextcloud Mail accounts are deleted. The implementation introduces a new service to handle the deletion logic with proper validation to ensure only legitimate IONOS-provisioned accounts are deleted.

Key Changes:

  • Added IonosAccountDeletionService to orchestrate the deletion workflow with domain and email verification
  • Implemented getIonosEmailForUser() method in IonosMailService to retrieve provisioned email addresses
  • Integrated the deletion service into AccountService to hook into the account deletion flow

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
lib/Service/IONOS/IonosAccountDeletionService.php New service implementing validated IONOS mailbox deletion logic
lib/Service/IONOS/IonosMailService.php Added method to retrieve IONOS provisioned email for a user
lib/Service/AccountService.php Integrated IONOS deletion service into account deletion workflow
tests/Unit/Service/IONOS/IonosAccountDeletionServiceTest.php Comprehensive test coverage for deletion service scenarios
tests/Unit/Service/IONOS/IonosMailServiceTest.php Tests for new email retrieval functionality
tests/Unit/Service/AccountServiceTest.php Updated tests to verify deletion service integration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@printminion-co printminion-co force-pushed the mk/dev/delete_ionosmail_on_ncmail_deletion branch from 7a12f7a to 0793129 Compare December 4, 2025 14:17
…mail account retrieval

Improves clarity of error logging by specifying the context of IONOS mail account retrieval failures.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
…and logging

- Refactored mail account existence check to return MailAccountResponse instead of boolean.
- Enhanced logging messages for better clarity during account retrieval.
- Introduced a private method to encapsulate the logic for fetching the mail account response.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
@printminion-co printminion-co force-pushed the mk/dev/delete_ionosmail_on_ncmail_deletion branch from 0793129 to fc8e330 Compare December 4, 2025 14:23
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@printminion-co printminion-co force-pushed the mk/dev/delete_ionosmail_on_ncmail_deletion branch from fc8e330 to 6171aaa Compare December 4, 2025 14:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

… mail account deletion

Add IonosAccountDeletionService to handle the deletion of IONOS mailboxes when associated mail accounts are deleted.
This service checks if the account is an IONOS account and safely deletes the mailbox while logging relevant information.
Integration checks are included to prevent accidental deletions.

Signed-off-by: Misha M.-Kupriyanov <[email protected]>
@printminion-co printminion-co force-pushed the mk/dev/delete_ionosmail_on_ncmail_deletion branch from 6171aaa to 513b08e Compare December 4, 2025 14:38
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@seriAlizations seriAlizations left a comment

Choose a reason for hiding this comment

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

LGTM

@printminion-co printminion-co merged commit f4ab8ec into ionos-dev Dec 8, 2025
26 of 38 checks passed
@printminion-co printminion-co deleted the mk/dev/delete_ionosmail_on_ncmail_deletion branch December 8, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants