项目作者: nbonamy

项目描述 :
Script to forward email from an IMAP account through SMTP based on filters
高级语言: JavaScript
项目地址: git://github.com/nbonamy/node-imap-forwarder.git
创建时间: 2021-03-23T23:51:39Z
项目社区:https://github.com/nbonamy/node-imap-forwarder

开源协议:Apache License 2.0

下载


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:

  1. {
  2. "imap": {
  3. // imap configuration block as seen on
  4. // https://github.com/mscdex/node-imap#examples
  5. },
  6. "smtp": {
  7. // smtp configuration block as seen on
  8. // https://github.com/nodemailer/nodemailer
  9. },
  10. "filters": [
  11. {
  12. "to": "email address to forward mail to",
  13. "from": [ "filter1 as glob", ... ],
  14. },
  15. "to": "email address to forward mail to",
  16. "subject: "text to search",
  17. }
  18. ]
  19. }