Skip to content

JAMES-4186 [REFACTOR] EmaiQueryOptimizer interface to wrap email query view logic in JMAP EmailQueryMethod#2963

Open
Arsnael wants to merge 3 commits intoapache:masterfrom
Arsnael:email-query-optimizer
Open

JAMES-4186 [REFACTOR] EmaiQueryOptimizer interface to wrap email query view logic in JMAP EmailQueryMethod#2963
Arsnael wants to merge 3 commits intoapache:masterfrom
Arsnael:email-query-optimizer

Conversation

@Arsnael
Copy link
Contributor

@Arsnael Arsnael commented Mar 5, 2026

Allows to be able to add custom optimizers for email query

I know we said initially the predicate would be EmailQueryRequest => Option[SFlux[MessageId]]

But I don't think that re-extracting and re-verifying the search query, limit and position from the request for each optimizer is optimal. Also we need the session.

@chibenwa
Copy link
Contributor

chibenwa commented Mar 5, 2026

Do we have a JIRA ticket for this?

Please open it.

Copy link
Contributor

@chibenwa chibenwa left a comment

Choose a reason for hiding this comment

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

On the principle, YES !

@Arsnael Arsnael force-pushed the email-query-optimizer branch from 12e9543 to 24342c1 Compare March 6, 2026 03:14
@Arsnael Arsnael changed the title [REFACTOR] EmaiQueryOptimizer interface to wrap email query view logic in JMAP EmailQueryMethod JAMES-4186 [REFACTOR] EmaiQueryOptimizer interface to wrap email query view logic in JMAP EmailQueryMethod Mar 6, 2026
…il query view logic in JMAP EmailQueryMethod
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.

3 participants