Skip to content

MDNParseMethod: do not rely on search #5511

@chibenwa

Description

@chibenwa

cf apache#2928 (comment)

+     SFlux.fromPublisher(mailboxManager.search(searchByRFC822MessageId, session, NUMBER_OF_ORIGINAL_MESSAGE_ID_VALID + 1)).collectSeq().map {
-     SFlux.fromPublisher(mailboxManager.search(searchByRFC822MessageId, session, SearchOptions.limit(JavaLimit.limit(NUMBER_OF_ORIGINAL_MESSAGE_ID_VALID + 1)))).collectSeq().map {

IMO we shall open another issue to actually fix this unmonitored use of search to resolve MessageID (booouh)

My suggestion is actually to rely on the ThreadIdGuessingAlgorithm in order to get the email thread and from there list thread headers in order to identify the corresponding email.

Metadata

Metadata

Assignees

Labels

enhancementperfContributes some performance enhencements

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions