[TASK] Track \Recent per session instead of clearing it for the selecting session
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
Read the SELECT, NOOP, and IDLE handling alongside ClientState and the database ClearRecentFlagsPerUser operation. Trace how SEARCH and FETCH FLAGS evaluate recent messages, then run the relevant IMAP tests and add coverage for both the selecting session and a second session. Done means the first session retains \Recent for SEARCH and FETCH while the second does not, and the known-gaps note from #316 is removed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What needs to be done?
Follow-up to #316 (review comment: https://github.com/OpenGovMail/raven/pull/316#discussion_r4708023896).
After #316, a read-write SELECT reports * N RECENT and then removes \Recent from every message in the mailbox in the database (db.ClearRecentFlagsPerUser). This makes the count bounded, but the session that ran SELECT loses the flag immediately. Right after receiving * 1 RECENT, the same client sees:
SEARCH RECENT/SEARCH NEWreturn no resultsFETCH n FLAGSdoesn't include\Recent
RFC 3501 (sections 2.3.2 and 7.3.2) says the session that is first told about a message should keep seeing it as \Recent for as long as it has the mailbox selected, and no other session should see it as recent.
Suggested approach
- When
SELECTclears\Recent, store the affected UIDs inClientState(for exampleRecentUIDs map[uint32]bool) for that session. - Do the same for messages that first reach this session through
NOOP/IDLE, and clear them from the database at that point. - Make
SEARCH RECENT/NEW/OLDandFETCH FLAGS(includingUIDvariants) check the session set instead of the stored flag. - Reset the set on
CLOSE,UNSELECT, a newSELECT/EXAMINE, and logout. STATUSshould keep using the stored count.
Done when
- Tests cover: after
SELECT, the same session still sees the messages as\RecentinSEARCHandFETCH, and a second session doesn't. - The "known gaps" note from #316 can be removed.
- Lingua principale
- Go
- Stelle
- 12
- Fork
- 13
- Merge medio
- 2g 3h
- PR unite (30g)
- 8
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di OpenGovMail/raven
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenGovMail/raven#338 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] UNSELECT accepts extra arguments instead of returning BADForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
OpenGovMail/raven#322 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] NAMESPACE accepts extra arguments instead of returning BADForse già presa @tharinfernando l’ha presa 1 giorno fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#321 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#320 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
OpenGovMail/raven#319 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di OpenGovMail/raven
Issue simili
-
Add rebaseWhen: conflicted to major Go module Renovate updatesForse già presa @WadekarPrashant l’ha presa oggi. Apertaenhancement feature good first issue ready-for-triage triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
konflux-ci/build-definitions#3943 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
-
Typos Check fails when the typos binary download failsForse già presa @akshat-kumar-singhal l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
defect
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nats-io/nats-server#8966 ·
I maintainer di solito rispondono entro 1 giorno
-
cmd/fix, x/tools/go/analysis/passes/modernize: mapsloop moves comments out of the range operandForse già presa @muratmirgun l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno