node-red-contrib-mail-actions
A node to take operations on IMAP email.
Last updated 2 years ago by afeltham .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install node-red-contrib-mail-actions 
SYNC missed versions from official npm registry.

node-red-contrib-email-actions

=========================

A simple Node-RED (http://nodered.org) node to perform operations on emails retrieved via the email-in node.

Features

  • Leaves original payload unchanged
  • Optionally Adds lables to emails
  • Optionally moves emails to a specified folder

Install

Run the following command in the root directory of your Node-RED install (typically ~/.node-red)

npm install node-red-contrib-email-actions

Example

[{"id":"80db7ff2.eb058","type":"e-mail in","z":"5aed5fb2.3b8c","name":"","protocol":"IMAP","server":"imap.gmail.com","useSSL":true,"port":"993","box":"INBOX","disposition":"Read","repeat":"300","x":130,"y":100,"wires":[["20ec9cc4.044104","aabb1a97.7ca4e8"]]},{"id":"20ec9cc4.044104","type":"debug","z":"5aed5fb2.3b8c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":310,"y":120,"wires":[]},{"id":"d6238d84.d27e9","type":"mailactions","z":"5aed5fb2.3b8c","name":"","protocol":"IMAP","server":"imap.gmail.com","useSSL":true,"port":"993","box":"INBOX","outbox":"Processed","tag":"","x":470,"y":80,"wires":[["ac43a21c.be1df"]]},{"id":"ac43a21c.be1df","type":"debug","z":"5aed5fb2.3b8c","name":"after actions","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":650,"y":80,"wires":[]},{"id":"aabb1a97.7ca4e8","type":"function","z":"5aed5fb2.3b8c","name":"","func":"msg.email = { \n    \"folder\" : \"Testing\",\n    \"label\" : \"my label\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":310,"y":80,"wires":[["d6238d84.d27e9"]]}]

Author

Andy Feltham, https://github.com/FilamentAI

Current Tags

  • 1.0.1                                ...           latest (2 years ago)

2 Versions

  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |