Lines of
src/main.rs
from check-in cc376760fc
that are changed by the sequence of edits moving toward
check-in ac6ac8c108:
1: //! Simple SMTP-to-Telegram gateway. Can parse email and send them as telegram
2: //! messages to specified chats, generally you specify which email address is
3: //! available in configuration, everything else is sent to default address.
4:
cc376760fc 2026-07-31 5: use async_compat::Compat;
cc376760fc 2026-07-31 6: use stacked_errors:: Result;
cc376760fc 2026-07-31 7:
cc376760fc 2026-07-31 8: // main function stub that executes main code from lib
cc376760fc 2026-07-31 9: fn main () -> Result<()> {
cc376760fc 2026-07-31 10: smol::block_on(Compat::new(async {
cc376760fc 2026-07-31 11: smtp2tg::async_main().await
cc376760fc 2026-07-31 12: }))
cc376760fc 2026-07-31 13: }