889 B
889 B
FAIL
- crates/ely-mail-engine/src/sync.rs:111 — UIDL deduplication uses only the pre-sync
heldsnapshot; successfully downloaded UIDLs are never added. A server can legitimately list1 aa1and2 aa1for identical copies (RFC 1939 §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 andreport.bodies == 2instead 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 whenkeepis false. Cover duplicate UIDLs within one listing in both retention modes.