A utility to back up mail from various sources to couchdb
  • Rust 54.3%
  • Go 24%
  • Shell 11.8%
  • Python 6.1%
  • Just 3.8%
Find a file
Ole-Morten Duesund ea6235b674 feat: implement real IMAP message parsing with native CouchDB attachments
- Replace placeholder message generation with actual IMAP message fetching using go-message library
- Add per-account CouchDB databases for better organization and isolation
- Implement native CouchDB attachment storage with proper revision management
- Add command line argument parsing with --max-messages flag for controlling message processing limits
- Support both sync and archive modes with proper document synchronization
- Add comprehensive test environment with Podman containers (GreenMail IMAP server + CouchDB)
- Implement full MIME multipart parsing for proper body and attachment extraction
- Add TLS and plain IMAP connection support based on port configuration
- Update configuration system to support sync vs archive modes
- Create test scripts and sample data for development and testing

Key technical improvements:
- Real email envelope and header processing with go-imap v2 API
- MIME Content-Type and Content-Disposition parsing for attachment detection
- CouchDB document ID generation using mailbox_uid format for uniqueness
- Duplicate detection and prevention to avoid re-storing existing messages
- Proper error handling and connection management for IMAP operations

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 17:04:10 +02:00
go feat: implement real IMAP message parsing with native CouchDB attachments 2025-08-01 17:04:10 +02:00
test feat: implement real IMAP message parsing with native CouchDB attachments 2025-08-01 17:04:10 +02:00
.gitignore Initial commit 2025-07-29 13:13:50 +02:00
CLAUDE.md feat: implement real IMAP message parsing with native CouchDB attachments 2025-08-01 17:04:10 +02:00
config.json feat: implement real IMAP message parsing with native CouchDB attachments 2025-08-01 17:04:10 +02:00
LICENSE Initial commit 2025-07-29 13:13:50 +02:00
README.md doc: rust and go 2025-07-29 13:27:21 +02:00
TODO.md docs: add comprehensive keyword filtering specification 2025-07-29 17:19:55 +02:00

mail2couch

A utility to back up mail from various sources to couchdb

At least two implementations will be available, on in Rust and one in Go.