An open API service indexing awesome lists of open source software.

https://github.com/r00tman/mailer

fast and lean vi-style terminal email reader in just 850 loc
https://github.com/r00tman/mailer

email golang linux osx vim w3m

Last synced: about 2 months ago
JSON representation

fast and lean vi-style terminal email reader in just 850 loc

Awesome Lists containing this project

README

        

# mailer
Fast and lean vi-style terminal email reader

## Getting Started

Installing/updating:
```shell
$ go get -v -u github.com/r00tman/mailer
```

Now you have `mailer` in `$GOPATH/bin` (which is usually `~/go/bin`).

If you haven't already, you can add `$GOPATH/bin` to your `$PATH` by appending this to `.bashrc`/`.zshrc`/etc.:
```bash
export PATH="${GOPATH:-$HOME/go}/bin:$PATH"
```

You may want to install `w3m`, since it is required to read html emails.

Now you can just run the app:
```shell
$ mailer
```

BTW, feel free to alias/symlink `mailer` to `ml` (or whatever you like), since it is much quicker to type.

## Usage
Most keybindings are vi/w3m style.

This means that:
- `jk`/`Down Up` are for down, up (numbers work too, i.e., `10j` scrolls 10 lines down),
- `hl`/`Esc Enter`/`Left Right` are for closing, opening emails and mailboxes,
- `r` is for toggling the read status of the selected message (works in the message viewer too),
- `q`/`:q` are for quitting,
- `PgUp PgDown`/`Ctr-U Ctr-D`/`{ }`/`b Space` are for page scrolling,
- `gg G`/`Home End` are for getting to the start and to the end,
- `Ctrl-L`/`;` aligns view to the selection (cycles between modes when pressed repeatedly),
- `/?` are for forward, backward search,
- `nN` are for next, previous search match.

Tip: You can scroll to the text/html part by typing `/html`.