Something like --check-databases would check that:
all the entries can be read
one fake entry can be inserted
the fake entry can be removed
Contributor guide
Tech stack
pythonsqlite
Domain
backenddatabase
Issue type
feature
DifficultyEstimated implementation difficulty for a new contributor, from 1 for very small changes to 5 for expert-level work.
3
Estimated timeA rough time range for an experienced contributor to investigate, implement, test, and prepare a pull request.
1-3 hours
Activity statusHow available the issue appears right now: fresh, active, stale, blocked, or waiting on maintainer input.
stale
ClarityHow clearly the issue explains the expected change, acceptance criteria, and next step.
clear
Prerequisites
PythonSQLite
Newbie friendlinessA 1-100 score estimating how approachable this issue is for first-time contributors.
65
Research direction
Review the issue comments (5 comments) for any implementation ideas. Examine the database module in the repository, likely under offlineimap/database/, to understand how database files are used. Implement a new command line flag like check databases in the main entry point, iterating over each database file to perform the three checks described. Ensure the implementation allows inserting and removing a fake entry without side effects.