Readme: Add TODOs, remove old example

This commit is contained in:
Payas Relekar 2024-07-20 20:45:10 +05:30
parent 24427f6f65
commit 101210188c

View file

@ -10,26 +10,12 @@ WARNING: This library is a personal project to learn Gleam. It is *extremely* in
```sh
gleam add mbox
```
```gleam
import gleambox
import simplifile
pub fn main() {
let mboxcontents =
"/path/to/file"
|> simplifile.read
|> result.unwrap(or: "")
TODOs:
mboxcontents
|> gleambox.get_headers
|> dict.to_list
|> list.map(io.debug)
mboxcontents
|> gleambox.get_body
|> io.println
}
```
- [ ] Add example
- [ ] Better error propagation
- [ ] Handle multi-part MIME messages
Further documentation can be found at <https://hexdocs.pm/gleambox>.