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] Fixed jmap quota display #1296

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Shadow243
Copy link
Member

@Shadow243 Shadow243 commented Oct 22, 2024

RFC: https://www.rfc-editor.org/rfc/rfc9425.pdf
Add get_quota_root to hm-jmap.php to correct error Uncaught Error: Call to undefined method Hm_JMAP::get_quota_root
Screenshot 2024-10-22 at 18 15 28

@Shadow243
Copy link
Member Author

There an other issue that i'l correct: Uncaught Error: Call to undefined method Hm_JMAP::get_capability()

@Shadow243 Shadow243 marked this pull request as draft October 22, 2024 17:21
@Shadow243 Shadow243 force-pushed the fix-jmap-quota branch 3 times, most recently from d97d6da to c5b5205 Compare October 23, 2024 19:19
@Shadow243 Shadow243 marked this pull request as ready for review October 23, 2024 19:19
@Shadow243
Copy link
Member Author

There an other issue that i'l correct: Uncaught Error: Call to undefined method Hm_JMAP::get_capability()

I just added get_capability that must be implemented, I just spent several hours on this but no method worked, so I have to look for another way.

@Shadow243 Shadow243 requested a review from kroky October 23, 2024 19:21
if ($max > 0) {
$this->out('quota', ceil(($current / $max) * 100));
$this->out('quota_max', $max / 1024);
if($imap instanceof Hm_JMAP) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please unify the interface/data scheme for both IMAP and JSON, so the corresponding methods in those classes return the same data structure, then the handler can just use it and not distinguish between the two. This will be particularly helpful in the light of the upcoming EWS support which will use a 3rd set of data representation.

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.

2 participants