Skip to main content

Sync email threads from IMAP to Markdown, draft replies, manage collaborators

Project description

Corky

Alpha software. Expect breaking changes between minor versions. See VERSIONS.md for migration notes.

Full documentation: https://btakita.github.io/corky

Sync email threads from IMAP to Markdown. Draft replies with AI assistance. Share scoped threads with collaborators via git.

Corky syncs threads from any IMAP provider (Gmail, Protonmail Bridge, self-hosted) into mail/conversations/ — one file per thread, regardless of source. A thread that arrives via both Gmail and Protonmail merges into one file. Labels, accounts, and contacts are metadata, not directory structure.

Install

pip install corky        # or: pipx install corky

Or via shell installer:

curl -sSf https://raw.githubusercontent.com/btakita/corky/main/install.sh | sh

Or from source: cargo install --path .

Quick start

corky init --user you@gmail.com
# Edit mail/.corky.toml with credentials
corky sync

See the getting started guide for full setup instructions.

Key features

  • Flat conversations — one Markdown file per thread, all sources merged
  • Sandboxed sharing — label-based routing gives collaborators only the threads you choose
  • AI-native — files, CLI, and git work the same for humans and agents
  • Multi-account — Gmail, Protonmail Bridge, generic IMAP, all in one directory
  • Watch daemon — poll IMAP on an interval with corky watch

Usage

corky sync                      # Incremental IMAP sync
corky unanswered                # Threads awaiting a reply
corky draft push FILE           # Save as email draft
corky mailbox add NAME --label LABEL  # Share threads
corky watch                     # Poll and sync automatically
corky --help                    # All commands

See the command reference for details.

Development

cp .corky.toml.example mail/.corky.toml
make check    # clippy + test
make release  # build + symlink to .bin/corky

See building and conventions.

AI agent instructions

Project instructions live in AGENTS.md (symlinked as CLAUDE.md). Personal overrides go in CLAUDE.local.md / AGENTS.local.md (gitignored).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

corky-0.7.1.tar.gz (112.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

corky-0.7.1-py3-none-manylinux_2_39_x86_64.whl (5.2 MB view details)

Uploaded Python 3manylinux: glibc 2.39+ x86-64

File details

Details for the file corky-0.7.1.tar.gz.

File metadata

  • Download URL: corky-0.7.1.tar.gz
  • Upload date:
  • Size: 112.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.4

File hashes

Hashes for corky-0.7.1.tar.gz
Algorithm Hash digest
SHA256 d5e3984ef9d25033e8141cddcbe53e00a8d6c82291d1cd23dd7ec2f53410382c
MD5 712cd5adf18ce5f86fa8822fba4c0290
BLAKE2b-256 847e5f6c7299f1d12517bdebee4d715c114502105e2df5089836e9be5e6a807b

See more details on using hashes here.

File details

Details for the file corky-0.7.1-py3-none-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for corky-0.7.1-py3-none-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 6a0f1f7e26cf5845720d66ece29bd34e2bc320018544040c4e2bc6260acb0cd0
MD5 f2a231d3f82764362d4ec6f5ab5ff121
BLAKE2b-256 70aa14afdb9c50d52dd1be4f9949e497137b7c44c87b4ce5e43cbbcc2801c8b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page