C12.7: POP3 fetch by UIDL

This commit is contained in:
雷电芽衣 committed 2026-10-19 21:40:25 -04:00
1 parent 890bd80d4d
commit 4d0d64ff54
18 files changed
+394 -47

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
FAIL
- crates/ely-mail-engine/src/sync.rs:111 — UIDL deduplication uses only the pre-sync `held` snapshot; successfully downloaded UIDLs are never added. A server can legitimately list `1 aa1` and `2 aa1` for identical copies ([RFC 1939 §7](https://www.rfc-editor.org/rfc/rfc1939.html#section-7)). Starting with an empty inbox, both messages are retrieved and written, although they have one UIDL and produce one local message. The isolated regression reproduced two RETR commands and `report.bodies == 2` instead of 1 (`.work/c12.7-r1-probe.log`). This violates C12.7's download-once requirement and can unnecessarily fail synchronization if the redundant transfer fails. Add each UIDL to the current session's set after its local write succeeds; still issue DELE for every server message number when `keep` is false. Cover duplicate UIDLs within one listing in both retention modes.
+1
View File
@@ -0,0 +1 @@
PASS