Bug 419734 - UID consistency error
Summary: UID consistency error
Status: RESOLVED INTENTIONAL
Alias: None
Product: trojita
Classification: Applications
Component: Core (other bugs)
Version First Reported In: 0.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Trojita default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-06 16:52 UTC by Turtle
Modified: 2020-04-07 10:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Turtle 2020-04-06 16:52:05 UTC
SUMMARY
When opening a imap inbox hosed on dreamhost I get:
 imapError The IMAP server sent us a reply which we could not parse.
Please report this as a bug anyway. Here are the details:
MailboxException: FETCH response: UID consistency error for message #3955 -- expected UID 41643, got UID 41646
FETCH 3955 ( FLAGS \"\\Answered \\Seen\" UID \"41646\")

STEPS TO REPRODUCE
1. Open trojita
2. trojita reloads imap inbox


OBSERVED RESULT
Inbox does not finish loading, gets stuck.

EXPECTED RESULT
Inbox should load as expected.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.64.0
KDE Frameworks Version: 5.67
Qt Version: 5.13.2
Comment 1 Turtle 2020-04-06 17:11:51 UTC
Upon furthur investigation this bug was likely caused by sending a 'killall' or SIGTERM trojita

Deleting the file ~/.cache/flaska.net/trojita/imap.cache.sqlite
resolved the issue.
Comment 2 Jan Kundrát 2020-04-07 10:57:20 UTC
Just FYI, this message means that Trojita's understanding of the synchronization process diverged from your server's. It should either recover itself upon a reconnect, or it might require removing the IMAP cache as you did.

It should only ever happen if either the IMAP server or Trojita does not fully conform to the IMAP standard. My bet here is on Trojita's conformance :), but i'm sorry that it required a manual fixup from you.