Skip to content

fix: list mailboxes with quota disabled - #344

Merged
DavidePrincipi merged 1 commit into
mainfrom
fix-mailboxes-quota-off
Nov 11, 2026
Merged

DavidePrincipi merged 1 commit into
mainfrom
fix-mailboxes-quota-off

Conversation

@DavidePrincipi

@DavidePrincipi DavidePrincipi commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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.

  • Skip the quota query when quota is turned off.
  • Fix the misspelled name (agent.SD_ERR), so other quota errors are logged instead of crashing the action.
  • New test: list mailboxes with quota turned off, then restore the default unlimited quota.

How to test

  • Set an empty DOVECOT_QUOTA_MB in the module environment and reload the dovecot service.
  • Run 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

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 DavidePrincipi self-assigned this Nov 11, 2026
@DavidePrincipi DavidePrincipi changed the title Fix mailbox list with quota plugin disabled fix: list mailboxes with quota disabled Nov 11, 2026
@DavidePrincipi
DavidePrincipi marked this pull request as ready for review November 11, 2026 15:46
@DavidePrincipi
DavidePrincipi merged commit 440bd33 into main Nov 11, 2026
3 of 5 checks passed
@DavidePrincipi
DavidePrincipi deleted the fix-mailboxes-quota-off branch November 11, 2026 15:54
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.

1 participant