2025-08-02 15:08:35 +02:00
|
|
|
[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"
|
|
|
|
|
|
2025-08-02 19:52:14 +02:00
|
|
|
# IMAP client for email retrieval (using async-std compatible version)
|
|
|
|
|
async-imap = "0.9"
|
|
|
|
|
async-std = { version = "1.12", features = ["attributes"] }
|
2025-08-02 15:08:35 +02:00
|
|
|
|
2025-08-02 20:01:42 +02:00
|
|
|
# TLS support for secure IMAP connections
|
|
|
|
|
async-native-tls = "0.5"
|
|
|
|
|
|
2025-08-02 20:27:14 +02:00
|
|
|
# Email parsing with MIME support
|
|
|
|
|
mail-parser = "0.6"
|
|
|
|
|
|
2025-08-02 15:08:35 +02:00
|
|
|
# Logging
|
|
|
|
|
log = "0.4"
|
|
|
|
|
env_logger = "0.10"
|
|
|
|
|
|
|
|
|
|
# CLI argument parsing
|
|
|
|
|
clap = { version = "4.0", features = ["derive"] }
|
|
|
|
|
|
2025-08-02 19:52:14 +02:00
|
|
|
# File system utilities
|
|
|
|
|
dirs = "5.0"
|
|
|
|
|
|
|
|
|
|
# Pattern matching for folder filters
|
|
|
|
|
glob = "0.3"
|
|
|
|
|
|
2025-08-02 15:08:35 +02:00
|
|
|
[dev-dependencies]
|
|
|
|
|
# Testing utilities
|
|
|
|
|
tokio-test = "0.4"
|
2025-08-02 19:52:14 +02:00
|
|
|
tempfile = "3.0"
|
2025-08-02 15:08:35 +02:00
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
|
name = "mail2couch"
|
|
|
|
|
path = "src/lib.rs"
|
|
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
|
name = "mail2couch"
|
|
|
|
|
path = "src/main.rs"
|