Folders and message sync need to honor UIDValidity flag #93
Labels
No labels
actions
bug
complicated
database
dependencies
documentation
downstream
duplicate
enhancement
feature
fixed already
front-end
idea
internal
invalid
investigating
javascript
low priority
milestone
minor bug
needs info
networking
nice to have
pcntl
php
question
suggestion
sync
threading
ui
ux
web
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bcarrella/libremail#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
I waited about a year between syncs, and there were hundreds of messages being pulled down. After I deleted a few messages they kept coming back as "message id not found" when attempting to load the message ID from the unique ID.
The unique ID must be stale and it most likely has to do with the UIDValidity flag on the folder being different. We need to store this flag on the folder (comes back from
mailbox->select()) and if it's different, then we will need to update all of the unique IDs on all of the messages in the folder.Requirements
uid_validityflag to the folders tableuid_validityflag to the messages table->select()on each folder and update the UIDValidity flag