foxcpp / foxcpp/maddy

Implement maddyctl imap-fsck

Open
#189 0 comments 1 reaction 0 assignees View on GitHub
go-imap-sql imap new feature
Dominant language
Go
Stars
6.1k
Forks
327
PR merge metrics
No merged PRs in 30d

Description

For performance purposes, go-imap-sql implements some operations in a way that does not use SQL engine capability to detect and fix inconsistency errors.
Such go-imap-sql bugs can make storage unusable. There is a need for utility that will do its best to make it usable again.

- Remove non-existent messages from the index
- Remove dangling messages (or optionally add them to the "lost+found" account so they can be inspected)
- Reassign UIDs for affected mailboxes (and change UIDVALIDITY)
- Update message counters
- Rebuild cached headers from actual messages

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.