update email info to match actual implementation.

This commit is contained in:
Dave Conway-Jones 2019-06-14 16:37:31 -04:00
parent 16130362fc
commit 88ee43186c
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
4 changed files with 9 additions and 8 deletions

6
package-lock.json generated
View File

@ -4990,9 +4990,9 @@
} }
}, },
"nodemailer": { "nodemailer": {
"version": "6.1.1", "version": "6.2.1",
"resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.1.1.tgz", "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-6.2.1.tgz",
"integrity": "sha512-/x5MRIh56VyuuhLfcz+DL2SlBARpZpgQIf2A4Ao4hMb69MHSgDIMPwYmFwesGT1lkRDZ0eBSoym5+JoIZ3N+cQ==", "integrity": "sha512-TagB7iuIi9uyNgHExo8lUDq3VK5/B0BpbkcjIgNvxbtVrjNqq0DwAOTuzALPVkK76kMhTSzIgHqg8X1uklVs6g==",
"dev": true "dev": true
}, },
"nomnom": { "nomnom": {

View File

@ -46,7 +46,7 @@
"ngeohash": "^0.6.3", "ngeohash": "^0.6.3",
"node-red": "~0.20.5", "node-red": "~0.20.5",
"node-red-node-test-helper": "~0.2.2", "node-red-node-test-helper": "~0.2.2",
"nodemailer": "^6.1.1", "nodemailer": "^6.2.1",
"poplib": "^0.1.7", "poplib": "^0.1.7",
"proxyquire": "^2.1.0", "proxyquire": "^2.1.0",
"pushbullet": "^2.4.0", "pushbullet": "^2.4.0",

View File

@ -234,15 +234,16 @@
</script> </script>
<script type="text/x-red" data-help-name="e-mail in"> <script type="text/x-red" data-help-name="e-mail in">
<p>Repeatedly gets a <b>single email</b> from an IMAP server and forwards on as a msg if not already seen.</p> <p>Repeatedly gets emails from an IMAP server and forwards on as a msg if not already seen.</p>
<p>The subject is loaded into <code>msg.topic</code> and <code>msg.payload</code> is the plain text body. <p>The subject is loaded into <code>msg.topic</code> and <code>msg.payload</code> is the plain text body.
If there is text/html then that is returned in <code>msg.html</code>. <code>msg.from</code> and <code>msg.date</code> are also set if you need them.</p> If there is text/html then that is returned in <code>msg.html</code>. <code>msg.from</code> and <code>msg.date</code> are also set if you need them.</p>
<p>Additionally <code>msg.header</code> contains the complete header object including <p>Additionally <code>msg.header</code> contains the complete header object including
<i>to</i>, <i>cc</i> and other potentially useful properties.</p> <i>to</i>, <i>cc</i> and other potentially useful properties.</p>
<p>It can optionally mark the message as Read (default), Delete it, or leave unmarked (None).</p>
<p>Uses the imap module.</p> <p>Uses the imap module.</p>
<p><b>Note:</b> this node <i>only</i> gets the most recent single email from the inbox, so set the repeat (polling) time appropriately.</p> <p><b>Note:</b> this node <i>only</i> gets the most recent single email from the inbox, so set the repeat (polling) time appropriately.</p>
<p>Note: uses IMAP with SSL to port 993.</p> <p>Note: uses IMAP with SSL to port 993.</p>
<p>Any attachments supplied in the incoming email can be found in the <code>msg.attachments</code> property. This will be an array of objects where <p>Any attachments supplied in the incoming email can be found in the <code>msg.attachments</code> property. This will be an array of objects where
each object represents a specific attachments. The format of the object is:</p> each object represents a specific attachments. The format of the object is:</p>
<pre> <pre>

View File

@ -1,11 +1,11 @@
{ {
"name": "node-red-node-email", "name": "node-red-node-email",
"version": "1.6.0", "version": "1.6.2",
"description": "Node-RED nodes to send and receive simple emails", "description": "Node-RED nodes to send and receive simple emails",
"dependencies": { "dependencies": {
"imap": "^0.8.19", "imap": "^0.8.19",
"mailparser": "^2.7.1", "mailparser": "^2.7.1",
"nodemailer": "^6.1.1", "nodemailer": "^6.2.1",
"poplib": "^0.1.7" "poplib": "^0.1.7"
}, },
"repository": { "repository": {