https://github.com/zoni/email2pushover
email2pushover sends pushover notifications from mail read on stdin
https://github.com/zoni/email2pushover
Last synced: 10 days ago
JSON representation
email2pushover sends pushover notifications from mail read on stdin
- Host: GitHub
- URL: https://github.com/zoni/email2pushover
- Owner: zoni
- License: mit
- Created: 2015-06-28T09:22:34.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-28T10:58:10.000Z (almost 11 years ago)
- Last Synced: 2025-01-03T09:32:18.535Z (over 1 year ago)
- Language: Go
- Size: 137 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
email2pushover [](https://travis-ci.org/zoni/email2pushover)
==============
*email2pushover sends [pushover](http://pushover.net/) notifications from mail read on stdin.*

Usage
-----
```
usage: email2pushover --token=TOKEN --recipient=RECIPIENT []
email2pushover sends pushover notifications from mail read on stdin.
Flags:
--help Show help (also see --help-long and --help-man).
-H, --headers="subject,from"
Comma-separated list of headers to display in notification
-T, --title="Email" The notification title
-t, --token=TOKEN Your application token
-r, --recipient=RECIPIENT
Recipient's key (may be a user or delivery group)
--version Show application version.
```
### Feed it a local email
*Note: You will need to [register an application](https://pushover.net/apps/build) to get an API key.*
```
email2pushover --token YOUR_APP_TOKEN --recipient RECIPIENT_TOKEN --headers "subject,from,to" < test.eml
```
### Use it with procmail
This is one of the main use-cases for this utility. For example, to recieve a pushover notification whenever you receive mail with the word *urgent* in the subject:
```
# .procmailrc
:0 c
* ^Subject:.*urgent.*
| /path/to/email2pushover --token YOUR_APP_TOKEN --recipient YOUR_USER_KEY
```
Changes
-------
* __1.0.1__ (2015-06-28)
* Ensure headers are always displayed in the specified order
* __1.0.0__ (2015-06-28)
* Public release
License
-------
The MIT license. See the file *LICENSE* for full license text.