IONOS(mail): evaluate mailbox possible flag to hide mailbox creation - #55
Draft
Arsalanulhaq wants to merge 1 commit into
Draft
IONOS(mail): evaluate mailbox possible flag to hide mailbox creation#55Arsalanulhaq wants to merge 1 commit into
Arsalanulhaq wants to merge 1 commit into
Conversation
7 tasks
Check ncw.mailboxPossible system config (set from IONOS_MAILBOX_POSSIBLE env var) in IonosMailConfigService instead of relying on CUSTOMER_DOMAIN. Mailbox creation is hidden when the flag is absent or not 'true'.
Arsalanulhaq
force-pushed
the
as/dev/nsw-782-mail-app-evaluate-mailbox-possible-flag
branch
from
March 24, 2026 14:58
82469cd to
062c76a
Compare
Arsalanulhaq
marked this pull request as draft
March 24, 2026 15:12
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.
This pull request introduces a new configuration flag to control whether mailbox creation is possible for an instance, based on whether a customer domain is connected. The implementation includes the flag in business logic and adds comprehensive unit tests to ensure correct behavior.
Feature: Mailbox Creation Control
isMailboxPossible()method toIonosConfigServiceto check the newncw.mailboxPossiblesystem value, which determines if mailbox creation is allowed for the instance. This is set via theIONOS_MAILBOX_POSSIBLEenvironment variable.isMailConfigAvailable()inIonosMailConfigServiceto returnfalseif mailbox creation is not possible, logging a debug message and preventing further checks.