tuimail/config.toml.example
Shautvast 2287b08cb5 Integrate proton-bridge in-process and silence verbose logging
- Add proton-bridge as optional dep behind `proton` feature flag
- New proton-bridge/src/lib.rs: pub fn start() spins a background Tokio
  thread, pre-binds ports, and signals readiness via mpsc before returning
- src/main.rs: conditionally starts bridge before TUI enters raw mode;
  derives effective IMAP/SMTP config via Provider enum
- src/config.rs: add Provider enum, optional imap/smtp, ProtonConfig/
  BridgeConfig mirrors, effective_imap/smtp() helpers
- Remove all per-operation eprintln!/println! from imap_server, smtp_server,
  and api.rs that fired during TUI operation and corrupted the display
- config.toml.example: unified format covering both imap and proton providers

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-24 22:51:30 +01:00

36 lines
1.3 KiB
Text

# ── Standard IMAP/SMTP provider (default) ─────────────────────────────────────
# provider = "imap" # optional — "imap" is the default
[imap]
host = "imap.gmail.com" # your provider's IMAP server
port = 993
username = "you@example.com"
password = "your-app-password"
use_tls = true
[smtp]
host = "smtp.gmail.com" # your provider's SMTP server
port = 465
username = "you@example.com"
password = "your-app-password"
# tls_mode options: none | starttls | smtps
tls_mode = "smtps"
from = "Your Name <you@example.com>"
# ── ProtonMail provider ────────────────────────────────────────────────────────
# Uncomment the lines below (and remove or comment out [imap]/[smtp] above).
# Build with: cargo build --features proton
# Run with: cargo run --features proton
#
# provider = "proton"
#
# [proton]
# username = "you@proton.me"
# password = "your-proton-login-password"
# # mailbox_password = "..." # only for two-password-mode accounts
#
# [bridge]
# imap_port = 1143
# smtp_port = 1025
# local_password = "changeme" # any string; used only locally between tuimail and the bridge