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

[CNB] Sort by message size #3461

Open
chibenwa opened this issue Feb 3, 2025 · 3 comments
Open

[CNB] Sort by message size #3461

chibenwa opened this issue Feb 3, 2025 · 3 comments
Assignees
Labels

Comments

@chibenwa
Copy link
Member

chibenwa commented Feb 3, 2025

Why

I want to find my biggest message in order to delete them and eventually cleanup my account.

What

Add a sort option in the search result page: Size

Image

How

JMAP request:

{
    "using": [
        "urn:ietf:params:jmap:core",
        "urn:ietf:params:jmap:mail",
        "urn:apache:james:params:jmap:mail:shares"
    ],
    "methodCalls": [
        [
            "Email/query",
            {
                "accountId": "50fb9073ba109901291988b0d78e8a602a6fcd96fbde033eb46ca308779f8fac",
                "position": 0,
                "sort": [
                    {
                        "isAscending": false,
                        "property": "size"
                    }
                ],
                "limit": 20
            },
            "c0"
        ]
    ]
}
@hoangdat
Copy link
Member

hoangdat commented Feb 4, 2025

Will apply to master and patch to CNB branch

@chibenwa
Copy link
Member Author

chibenwa commented Feb 4, 2025

No need to patch CNB branch

@hoangdat
Copy link
Member

2HD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants