Check-in [cc376760fc]
Logged in as anonymous
Overview
Comment:propagate error from async
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cc376760fce9714aeb39757c1d96c2665d693390c09704bff6c530b4999e28cc
User & Date: arcade on 2026-07-31 15:20:28.292
Other Links: manifest | tags
Context
2026-07-31
15:21
make get_id public and add some tests for it check-in: e45c7e529b user: arcade tags: trunk
15:20
propagate error from async check-in: cc376760fc user: arcade tags: trunk
15:12
reorder uses, properly react to errors with hostname, check-in: 713c1e7fb2 user: arcade tags: trunk
Changes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! 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(())
}










|
|
<
<

1
2
3
4
5
6
7
8
9
10
11
12


13
//! 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
	}))


}