# Email CLI 🦫

---

<img src = "assets/logo.png" width=200 height=200>

---

[![Go CI](https://github.com/andrinoff/email-cli/actions/workflows/ci.yml/badge.svg)](https://github.com/andrinoff/email-cli/actions/workflows/ci.yml) [![Go Release](https://github.com/andrinoff/email-cli/actions/workflows/release.yml/badge.svg)](https://github.com/andrinoff/email-cli/actions/workflows/release.yml) [![GitHub issues](https://img.shields.io/github/issues/andrinoff/email-cli)](https://github.com/andrinoff/email-cli/issues)

[![GitHub stars](https://img.shields.io/github/stars/andrinoff/email-cli)](https://github.com/andrinoff/email-cli/stargazers) [![GitHub release (latest by date)](https://img.shields.io/github/v/release/andrinoff/email-cli)](https://github.com/andrinoff/email-cli/releases) [![GoReleaser](https://img.shields.io/badge/GoReleaser-blue?logo=goreleaser)](https://goreleaser.com)

[![Go Version](https://img.shields.io/github/go-mod/go-version/andrinoff/email-cli)](https://golang.org) [![Go Report Card](https://goreportcard.com/badge/github.com/andrinoff/email-cli)](https://goreportcard.com/report/github.com/andrinoff/email-cli) [![Patreon](https://img.shields.io/badge/Patreon-F96854?logo=patreon&logoColor=white)](https://patreon.com/andrinoff)

[![GitHub license](https://img.shields.io/github/license/andrinoff/email-cli)](https://github.com/andrinoff/email-cli/blob/master/LICENSE) [![GitHub contributors](https://img.shields.io/github/contributors/andrinoff/email-cli)](https://github.com/andrinoff/email-cli/graphs/contributors)

A beautiful and functional email client for your terminal, built with Go and the charming Bubble Tea TUI library. Never leave your command line to check your inbox or send an email again!

![Main Menu Screenshot](assets/preview.png)

## Features ✨

- **View Your Inbox**: Fetches and displays a list of your most recent emails.
- **Read Emails**: Select an email from your inbox to view its content.
- **Compose and Send**: A simple and intuitive interface for writing and sending new emails.
- **Beautiful TUI**: A clean and modern terminal user interface that's a pleasure to use.
- **Secure**: Uses a local configuration file to store your credentials securely.
- **Supported Providers**: Works with Gmail and iCloud.

## Getting Started 🚀

### Installation via Homebrew 🍺 (MacOS & Linux)

To install Email CLI using Homebrew, run the following commands:

```bash
brew tap andrinoff/email-cli
brew install email-cli
```

After installation, run:

```bash
email-cli
```

to get started.

### Install using Snap

```bash
snap install andrinoff.email-cli
```

### Build from Source 🔨

Email CLI is written in **Go**. To build it manually:

1.  Ensure you have Go installed (`go version`).
2.  Clone the repository:

    ```bash
    git clone https://github.com/andrinoff/email-cli.git
    ```

3.  Navigate to the project folder:

    ```bash
    cd email-cli
    ```

4.  Build the binary:

    ```bash
    go build -o email-cli
    ```

5.  Run it:
    ```bash
    ./email-cli
    ```

## License 📄

This project is distributed under the MIT License. See the `LICENSE` file for more information.

---

Made by [@andrinoff](https://andrinoff.com)
