nthmail/README.md
Guilherme Rugai Freire a88e5e90dc
parse mail subject when receiving and saving to db
this way, when the inbox route is called, there is no need to parse all
mails neither request them from db just so it can have their subject
2024-07-18 22:10:35 -03:00

45 lines
583 B
Markdown

# Nothing Mail
A temporary email service
## Getting Started
### Compiling
Requirements:
- Golang
- Templ
- Make
```sh
make
```
### Creating a database:
Requirements:
- SQLite
```sh
cat migration.sql | sqlite3 db.db
```
### Running:
Available env variables:
- WEB_SERVER_PORT
- MAIL_SERVER_PORT
- MAIL_SERVER_DOMAIN
- DB_PATH
```sh
./bin/server
```
## TODO
- Restart when either mail or web server dies
- Handle attachments
- Do not store the raw mail data in the DB, maybe use block storage (the provider can be a disk provider at first)
- Cache in general?