Replace third-party POP3 client with a custom implementation using native-tls for direct TLS socket communication. This change ensures email messages are retrieved as raw bytes without encoding conversions that could corrupt email data. Key improvements: - Direct byte-level message retrieval preserves original email structure - Proper handling of POP3 byte-stuffing (doubled leading dots) - Eliminates dependency on rust-pop3-client which performed unwanted string conversions and line ending modifications - Uses only native-tls for TLS connections (already a project dependency)
24 lines
398 B
TOML
24 lines
398 B
TOML
[package]
|
|
name = "rs_pop_imap_importer"
|
|
version = "0.6.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
name = "rs_pop_imap_importer"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "pop-to-imap"
|
|
path = "src/main.rs"
|
|
|
|
[[bin]]
|
|
name = "normalize-imap"
|
|
path = "src/bin/normalize_imap.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5.53", features = ["derive"] }
|
|
dotenvy = "0.15.7"
|
|
imap = "2.4.1"
|
|
imap-proto = "0.16.6"
|
|
native-tls = "0.2.14"
|