mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
Add standard reference for UID FETCH quirk
This commit is contained in:
@@ -583,8 +583,13 @@ impl Imap {
|
|||||||
for msg in &list {
|
for msg in &list {
|
||||||
let cur_uid = msg.uid.unwrap_or_default();
|
let cur_uid = msg.uid.unwrap_or_default();
|
||||||
if cur_uid <= last_seen_uid {
|
if cur_uid <= last_seen_uid {
|
||||||
// seems that at least dovecot sends the last available UID
|
// If the mailbox is not empty, results always include
|
||||||
// even if we asked for higher UID+N:*
|
// at least one UID, even if last_seen_uid+1 is past
|
||||||
|
// the last UID in the mailbox. It happens because
|
||||||
|
// uid+1:* is interpreted the same way as *:uid+1.
|
||||||
|
// See https://tools.ietf.org/html/rfc3501#page-61 for
|
||||||
|
// standard reference. Therefore, sometimes we receive
|
||||||
|
// already seen messages and have to filter them out.
|
||||||
info!(
|
info!(
|
||||||
context,
|
context,
|
||||||
"fetch_new_messages: ignoring uid {}, last seen was {}", cur_uid, last_seen_uid
|
"fetch_new_messages: ignoring uid {}, last seen was {}", cur_uid, last_seen_uid
|
||||||
|
|||||||
Reference in New Issue
Block a user