2022-11-14 11:59:04 +01:00
|
|
|
[TOC]
|
|
|
|
|
2022-11-06 14:10:15 +01:00
|
|
|
# choirMail
|
|
|
|
|
2022-11-14 11:59:04 +01:00
|
|
|
send a weekly mail automatically
|
|
|
|
|
|
|
|
## Building
|
|
|
|
Just run `nix build`.
|
|
|
|
|
|
|
|
## Running
|
|
|
|
Just run the binary to send a mail, it requires exactly one
|
|
|
|
parameter that points to a config file.
|
|
|
|
|
|
|
|
### Configuration
|
|
|
|
The config file is a toml file, even though it as of now makes not really use
|
|
|
|
of any toml features.
|
|
|
|
|
|
|
|
```toml
|
2022-11-14 12:13:42 +01:00
|
|
|
[mail]
|
|
|
|
domain = "the domain of the smtp server to send messages with"
|
|
|
|
user = "the username on the smtp server"
|
|
|
|
password = "the passwond on the smtp server"
|
|
|
|
to = "the mail to send to"
|
|
|
|
from = "the sender of the mail"
|
|
|
|
errorTo = "the address to send a mail to in case of error"
|
2022-11-14 11:59:04 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Develop
|
|
|
|
If you run `nix develop` you get a set up kakoune with an lsp. Be aware
|
|
|
|
this depends on your local cabal cache.
|
|
|
|
|
|
|
|
# TODO
|
|
|
|
- Better E-Mail generation
|
|
|
|
- Add the nix modules to the flake
|
|
|
|
- Better Error handling
|
|
|
|
- Find out which exceptions the SMTP module throws
|
2022-11-14 12:25:00 +01:00
|
|
|
- Split config into secrets and non secret config
|
|
|
|
- make the pad url configurable
|
2022-11-14 14:24:23 +01:00
|
|
|
- clean up Text vs lazy Text
|