2022-05-10 15:42:56 +00:00
|
|
|
# Just Enough Doc
|
|
|
|
|
2022-05-10 15:49:39 +00:00
|
|
|
## Run `simple` example
|
2022-05-10 15:42:56 +00:00
|
|
|
|
|
|
|
This example is meant to show basic service-based IMAP server with boitalettres library.
|
|
|
|
|
|
|
|
- [Source code](../examples/simple.rs)
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ cargo run --example simple
|
|
|
|
```
|
|
|
|
|
|
|
|
- [Basic python testing script](../scripts/test_imap.py)
|
|
|
|
|
|
|
|
```shell
|
|
|
|
$ python scripts/test_imap.py
|
|
|
|
```
|
|
|
|
|
2022-05-10 15:49:39 +00:00
|
|
|
## Notes
|
|
|
|
|
|
|
|
- The library use the `tracing` library for logging, a basic setup is shown in the `simple` example with the `tracing-subscriber` crate.
|
|
|
|
|
2022-05-10 15:42:56 +00:00
|
|
|
## References
|
|
|
|
|
|
|
|
- [`imap-codec`](https://docs.rs/imap-codec): IMAP protocol model+encoder/decoder
|
|
|
|
- [`tower`](https://docs.rs/tower): Service-based request handling library
|