An open API service indexing awesome lists of open source software.

https://github.com/nbonamy/node-imap-forwarder

Script to forward email from an IMAP account through SMTP based on filters
https://github.com/nbonamy/node-imap-forwarder

forwarder imap imap-client mail mail-forwarding smtp smtp-client

Last synced: about 1 month ago
JSON representation

Script to forward email from an IMAP account through SMTP based on filters

Awesome Lists containing this project

README

          

# node-imap-forwarder

Script to forward email from an IMAP account through SMTP based on filters:
- from: looks for text in message header from field
- subject: looks for text in message header subject field

## Installation

```npm install```

## Configuration

Create a `config.json` file like:

```
{
"imap": {
// imap configuration block as seen on
// https://github.com/mscdex/node-imap#examples
},
"smtp": {
// smtp configuration block as seen on
// https://github.com/nodemailer/nodemailer
},
"filters": [
{
"to": "email address to forward mail to",
"from": [ "filter1 as glob", ... ],
},
"to": "email address to forward mail to",
"subject: "text to search",
}
]
}
```