This commit completes the Rust implementation of mail2couch with full feature parity to the Go version, including: - Complete IMAP client with TLS support and retry logic - Advanced email parsing with MIME multipart support using mail-parser - Email attachment extraction and CouchDB storage - Sync mode implementation with deleted message handling - Enhanced error handling and retry mechanisms - Identical command-line interface with bash completion - Test configurations for both implementations The Rust implementation now provides: - Memory safety and type safety guarantees - Modern async/await patterns with tokio/async-std - Comprehensive error handling with anyhow/thiserror - Structured logging and progress reporting - Performance optimizations and retry logic Test configurations created: - rust/config-test-rust.json - Rust implementation test config - go/config-test-go.json - Go implementation test config - test-config-comparison.md - Detailed comparison documentation - test-both-implementations.sh - Automated testing script Both implementations can now be tested side-by-side with identical configurations to validate feature parity and performance. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
66 lines
No EOL
1.4 KiB
TOML
66 lines
No EOL
1.4 KiB
TOML
[package]
|
|
name = "mail2couch"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "A powerful email backup utility that synchronizes mail from IMAP accounts to CouchDB"
|
|
license = "MIT"
|
|
repository = "https://github.com/yourusername/mail2couch"
|
|
keywords = ["email", "backup", "imap", "couchdb", "sync"]
|
|
categories = ["email", "database"]
|
|
|
|
[dependencies]
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
|
|
# Date/time handling
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# HTTP client for CouchDB
|
|
reqwest = { version = "0.11", features = ["json"] }
|
|
|
|
# Async runtime
|
|
tokio = { version = "1.0", features = ["full"] }
|
|
|
|
# Error handling
|
|
thiserror = "1.0"
|
|
anyhow = "1.0"
|
|
|
|
# Configuration
|
|
config = "0.13"
|
|
|
|
# IMAP client for email retrieval (using async-std compatible version)
|
|
async-imap = "0.9"
|
|
async-std = { version = "1.12", features = ["attributes"] }
|
|
|
|
# TLS support for secure IMAP connections
|
|
async-native-tls = "0.5"
|
|
|
|
# Email parsing with MIME support
|
|
mail-parser = "0.6"
|
|
|
|
# Logging
|
|
log = "0.4"
|
|
env_logger = "0.10"
|
|
|
|
# CLI argument parsing
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
|
|
# File system utilities
|
|
dirs = "5.0"
|
|
|
|
# Pattern matching for folder filters
|
|
glob = "0.3"
|
|
|
|
[dev-dependencies]
|
|
# Testing utilities
|
|
tokio-test = "0.4"
|
|
tempfile = "3.0"
|
|
|
|
[lib]
|
|
name = "mail2couch"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "mail2couch"
|
|
path = "src/main.rs" |