Skip to content

JAMES-3754 Date searching should align IMAP4rev2 specifications#1360

Merged
chibenwa merged 1 commit intoapache:masterfrom
quantranhong1999:align-imap-rev2-search
Dec 28, 2022
Merged

JAMES-3754 Date searching should align IMAP4rev2 specifications#1360
chibenwa merged 1 commit intoapache:masterfrom
quantranhong1999:align-imap-rev2-search

Conversation

@quantranhong1999
Copy link
Copy Markdown
Member

We did not align the specs for BEFORE, ON, SINCE ... commands for a few edge cases.
https://www.rfc-editor.org/rfc/rfc9051.html#name-search-command

With this change, this is how our internal API for date searching should work (Opensearch/Elasticsearch):
image

e.g User searches SINCE <date>, we union ON and AFTER parts at IMAP layer => align the spec Messages whose internal date (disregarding time and timezone) is within or later than the specified date.

The same alignment is for other search date commands.

@chibenwa chibenwa merged commit 352352e into apache:master Dec 28, 2022
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