Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/pbrisbin/ghu

Unsubscribe from GitHub threads in the UNIX-est way possible
https://github.com/pbrisbin/ghu

Last synced: about 2 months ago
JSON representation

Unsubscribe from GitHub threads in the UNIX-est way possible

Awesome Lists containing this project

README

        

# GitHub Unsubscribe

```
Usage: ghu [options] < file

Parse stdin as an email for any List-Unsubscribe header containing a URL. Visit
that URL using curl, thereby unsubscribing you from the thread.

Options:
-o, --open Open the unsubscribe link with $BROWSER, not curl
-p, --print Print the unsubscribe link, do not visit it

```

The only thing GitHub-specific is that after we `curl` the URL, we check the
HTML response for a bit of text to show that you have been unsubscribed. Beyond
that, this tool could be used on any email containing a List-Unsubscribe header
with a URL.

## Installation

ghu is available in the [AUR](https://aur.archlinux.org/packages/ghu).

Non-Arch users can clone the repo and either

- Always invoke `/full/path/to/bin/ghu`, or
- Use `make install`, the default prefix is `/usr/local`

## Usage with Mutt

```
# .muttrc
macro index,pager ,u "\
set my_old_pipe_decode=\$pipe_decode nopipe_decode\
ghu\
set pipe_decode=\$my_old_pipe_decode\
" \
"Unsubscribe from any email with a List-Unsubscribe header"
```