Lines of
src/main.rs
from check-in 3c858ed7c4
that are changed by the sequence of edits moving toward
check-in cc376760fc:
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:
5: use async_compat::Compat;
6: use stacked_errors:: Result;
7:
8: // main function stub that executes main code from lib
9: fn main () -> Result<()> {
10: smol::block_on(Compat::new(async {
3c858ed7c4 2026-07-31 11: smtp2tg::async_main().await.unwrap()
3c858ed7c4 2026-07-31 12: }));
3c858ed7c4 2026-07-31 13:
3c858ed7c4 2026-07-31 14: Ok(())
15: }