feat: add ability to disable POP3 and IMAP servers via null port configuration#1998
feat: add ability to disable POP3 and IMAP servers via null port configuration#1998
Conversation
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
…ing option Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
Co-authored-by: rnwood <1327895+rnwood@users.noreply.github.com>
|
📊 Code Coverage Report
📁 Coverage by Namespace
Overall Coverage Details:
Enhanced coverage report with namespace breakdown - Azure DevOps Build #3.12.0-ci20251228104_pr1998 20251228.5 |
|
@copilot The build triggered by this PR has failed. Please use the Azure DevOps REST API to investigate and fix the issues. 🚨 IMPORTANT: Only proceed if this is the most recent commit on your branch. If a newer commit exists, ignore this notification. Build Details:
Instructions for @copilot:
The Azure DevOps REST API provides comprehensive build failure information without requiring browser access. |



POP3 and IMAP servers now consume ports even when unused. Users need the ability to disable them independently.
Changes
Pop3Server.cs: Early return in
StartAsync()whenPop3Portis null (matching existing IMAP behavior). FixedListeningPortsto return empty array when disabled instead of defaulting to port 110.appsettings.json: Document that null port values disable servers.
CommandLineParser.cs: Update help text to show empty string disables servers.
Usage
Command line:
Config file:
{ "ServerOptions": { "Pop3Port": null, "ImapPort": null } }Environment variables:
Disabled servers log:
[INF] POP3 server disabled - no port configuredDefault behavior unchanged - both servers remain enabled by default.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.