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

[MU] Very large email set fails #3370

Open
chibenwa opened this issue Dec 20, 2024 · 1 comment
Open

[MU] Very large email set fails #3370

chibenwa opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working customer

Comments

@chibenwa
Copy link
Member

Description

Select 1000 + emails and mode them

Tmail moves them all at once. And issue a gigantic request of 1000+ moves.

CF

monstruous-request.json.txt

Back hopefully refuses to process this!

{
    "sessionState": "2c9f1b12-b35a-43e6-9af2-0106fb53a943",
    "methodResponses": [
        [
            "error",
            {
                "type": "requestTooLarge",
                "description": "Too many items in a set request class org.apache.james.jmap.mail.EmailSetRequest. Got 1063 items instead of maximum 500."
            },
            "c0"
        ]
    ]
}

I'd expect we execute the move as a long lasting operation, by batches of 50...

@chibenwa chibenwa added bug Something isn't working customer labels Dec 20, 2024
@hoangdat hoangdat assigned hoangdat and dab246 and unassigned hoangdat Dec 23, 2024
@hoangdat
Copy link
Member

  • verify limit base on session
  • handle batches like mark as all read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working customer
Projects
None yet
Development

No branches or pull requests

3 participants