Artifact 150a10567303706b3a045908eb022b5e5ea2e850a874724ffe63afff2d552081:
- File src/main.rs — part of check-in [3c858ed7c4] at 2026-07-31 10:42:58 on branch trunk — reorganize to lib + bin to separate tests, add logging, fix some small stuff (user: arcade, size: 464) [annotate] [blame] [check-ins using]
//! Simple SMTP-to-Telegram gateway. Can parse email and send them as telegram //! messages to specified chats, generally you specify which email address is //! available in configuration, everything else is sent to default address. use async_compat::Compat; use stacked_errors:: Result; // main function stub that executes main code from lib fn main () -> Result<()> { smol::block_on(Compat::new(async { smtp2tg::async_main().await.unwrap() })); Ok(()) }