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
- Host: GitHub
- URL: https://github.com/nbonamy/node-imap-forwarder
- Owner: nbonamy
- License: apache-2.0
- Created: 2021-03-23T23:51:39.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-07-23T13:57:19.000Z (almost 3 years ago)
- Last Synced: 2026-03-29T21:43:04.278Z (3 months ago)
- Topics: forwarder, imap, imap-client, mail, mail-forwarding, smtp, smtp-client
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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",
}
]
}
```