email2pushover

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 28, 2015 License: MIT Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

email2pushover

email2pushover sends pushover notifications from mail read on stdin.

Image of a pushover notification

Usage

usage: email2pushover --token=TOKEN --recipient=RECIPIENT [<flags>]

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 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址