https://github.com/mrtazz/mime-extractor
extract mime bodies from email
https://github.com/mrtazz/mime-extractor
Last synced: about 1 year ago
JSON representation
extract mime bodies from email
- Host: GitHub
- URL: https://github.com/mrtazz/mime-extractor
- Owner: mrtazz
- License: mit
- Created: 2014-09-10T09:16:45.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-10T09:18:56.000Z (almost 12 years ago)
- Last Synced: 2025-01-25T23:17:16.454Z (over 1 year ago)
- Language: Go
- Size: 113 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mime-extractor
## Overview
Simple tool to extract the subject of an email on STDIN and print the parsed
MIME body as text. It prints the subject on the first line and body on
subsequent lines to be compatible with
[disrupt](https://github.com/mrtazz/disrupt).
## Usage
On the command line:
```
cat foo.email | mime-extractor
```
or with procmail and disrupt for cheap push notifications:
```
:0
* ^(Cc|To).*foo@example.com
| $HOME/bin/mime-extractor | $HOME/bin/cli-notifier
```