Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: correct caculations for mailcow widget #4055

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Fix: correct caculations for mailcow widget #4055

merged 2 commits into from
Sep 27, 2024

Conversation

shamoon
Copy link
Collaborator

@shamoon shamoon commented Sep 27, 2024

Proposed change

Seems #3993 does not properly handle > 1 domain

Closes #4052

Screenshot 2024-09-27 at 12 45 26 AM
[
    {
      "active": "1",
      "aliases_in_domain": 0,
      "aliases_left": 400,
      "backupmx": "0",
      "bytes_total": "5076666944",
      "def_new_mailbox_quota": 3221225472,
      "def_quota_for_mbox": 3221225472,
      "description": "Some description",
      "domain_name": "domain.tld",
      "gal": "0",
      "max_new_mailbox_quota": 10737418240,
      "max_num_aliases_for_domain": 400,
      "max_num_mboxes_for_domain": 10,
      "max_quota_for_domain": 10737418240,
      "max_quota_for_mbox": 10737418240,
      "mboxes_in_domain": 0,
      "mboxes_left": 10,
      "msgs_total": "172440",
      "quota_used_in_domain": "0",
      "relay_all_recipients": "0",
      "relayhost": "0",
      "rl": false,
      "tags": [
        "tag1",
        "tag2"
      ]
    },
    {
      "active": "1",
      "aliases_in_domain": 0,
      "aliases_left": 400,
      "backupmx": "1",
      "bytes_total": "5076666944",
      "def_new_mailbox_quota": 3221225472,
      "def_quota_for_mbox": 3221225472,
      "description": "domain description",
      "domain_name": "domain2.tld",
      "gal": "0",
      "max_new_mailbox_quota": 10737418240,
      "max_num_aliases_for_domain": 400,
      "max_num_mboxes_for_domain": 10,
      "max_quota_for_domain": 10737418240,
      "max_quota_for_mbox": 10737418240,
      "mboxes_in_domain": 0,
      "mboxes_left": 10,
      "msgs_total": "172440",
      "quota_used_in_domain": "0",
      "relay_all_recipients": "0",
      "relayhost": "0",
      "rl": false,
      "tags": [
        "tag3",
        "tag4"
      ]
    }
  ]

Type of change

  • New service widget
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Documentation only
  • Other (please explain)

Checklist:

  • If applicable, I have added corresponding documentation changes.
  • If applicable, I have reviewed the feature and / or service widget guidelines.
  • I have checked that all code style checks pass using pre-commit hooks and linting checks.
  • If applicable, I have tested my code for new features & regressions on both mobile & desktop devices, using the latest version of major browsers.

@shamoon shamoon merged commit d12b0d5 into dev Sep 27, 2024
5 checks passed
@shamoon shamoon deleted the fix-4052 branch September 27, 2024 08:00
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. See our contributing guidelines for more details.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant