# Coh@mail

Mail cli for Coh@bit.

> [!WARNING]
>
> Early preview Much more to come, stay up to date

## Installation

### From [jsr](https://jsr.io)

```sh
deno install \
  --allow-read \
  --allow-env \
  --allow-net=0.0.0.0 \
  --allow-sys=osRelease,networkInterfaces \
  --allow-run=/usr/sbin/sendmail,whoami \
  --global --force --name=cohamail jsr:@cohabit/mailer/cli
```

### From sources

> [!WARNING]
>
> Currently bin manually added to [releases](./releases) tab. Prefer `git clone`
> and [deno](https://deno.land) to use latest version.

## Basic usage

- From deno
  ```sh
  cd ./cohabit_mail
  deno task cli -h
  deno task <subcommand> -h
  ```

- From bin
  ```sh
  ./cohamail -h
  # OR
  ./cohamail <subcommand> -h
  ```

## Configuration

You can override default config and templates with your own in
`/etc/cohabit/mailer/(config|templates)/`.