Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pbrisbin/ghu
- Owner: pbrisbin
- License: mit
- Created: 2014-09-11T20:07:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-21T18:18:15.000Z (almost 10 years ago)
- Last Synced: 2024-10-09T09:43:02.857Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 252 KB
- Stars: 6
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Unsubscribe
```
Usage: ghu [options] < fileParse 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"
```