Repository navigation
fix: list mailboxes with quota disabled - #344
Merged
Merged
Conversation
If DOVECOT_QUOTA_MB is empty the quota plugin is disabled, and Dovecot 2.4 doveadm rejects quotaGet as an unknown method. The error handler then failed on a misspelled agent.SD_ERR constant, so the list-user-mailboxes action, and the mailbox facts, failed. Skip the quota query when the plugin is disabled and fix the constant name for the other quotaGet errors. Assisted-by: Claude Code:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 <[email protected]>
DavidePrincipi
marked this pull request as ready for review
November 11, 2026 15:46
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.
When mailbox quota is turned off from the command line (an empty
DOVECOT_QUOTA_MB), the mailbox list fails to load, and the facts report a mailbox error. Since Dovecot 2.4, asking for quota information in this case returns an error, and a misspelled name in the error handling code makes the whole action crash. Related to NethServer/dev#8267.Now the mailbox list loads normally and shows no quota information. Installations that set quota from the web interface are not affected, because the interface always saves a number.
agent.SD_ERR), so other quota errors are logged instead of crashing the action.How to test
DOVECOT_QUOTA_MBin the module environment and reload thedovecotservice.api-cli run module/mail1/list-user-mailboxes, or open the mailbox list in the web interface: it must load and show no quota.See also
Generated by Claude Code:claude-opus-5-5 with nethserver-pr