https://github.com/mdda/procmail.js
NodeJS email auto-responder, with notes
https://github.com/mdda/procmail.js
Last synced: 6 months ago
JSON representation
NodeJS email auto-responder, with notes
- Host: GitHub
- URL: https://github.com/mdda/procmail.js
- Owner: mdda
- License: mit
- Created: 2014-08-25T09:27:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-04T19:11:29.000Z (almost 12 years ago)
- Last Synced: 2023-03-11T07:58:12.380Z (over 3 years ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
procmail.js
===========
NodeJS email auto-responder, with notes
Enabling ```procmail``` email parsing is always a bit of a frustrating exercise, since none of the standard tool chains are built for it.
The attached actually work for mail sent to ```node_process@example.com```, using an 'off-the-shelf' $5/month Fedora linux VPS,
running ```postfix``` in its default configuration (using ```virtual-servers``` as the routing mechanism for multiple sites).
In addition, there's a version that includes a outgoing mail component, also proven to work on the same 'off-the-shelf' configuration.
Install
----------
```
npm install mailparser
cp dot_procmailrc ~/.procmailrc && chmod 600 ~/.procmailrc
mkdir ~/Mail
```
Test
----------
The easiest way to capture a 'live' email is to do 'show original' within the drop-down box on the right-hand-side of gmail.
Simply save that raw text file as ```mail-example.txt``` and pipe it into ```procmail.js``` as follows :
```
cat mail-example.txt | node procmail.js
```
The same incantation works for ```procmail_with_response.js`` - but it would make sense to check out the internals first
(particularly since your email provider may want the sending address to match the origin SMTP server).