mirror of
				https://github.com/node-red/node-red-nodes.git
				synced 2025-03-01 10:37:43 +00:00 
			
		
		
		
	| @@ -52,7 +52,6 @@ to do so automatically. | |||||||
| Please ensure you follow the coding standards used through-out the existing | Please ensure you follow the coding standards used through-out the existing | ||||||
| code base. Some basic rules include: | code base. Some basic rules include: | ||||||
|  |  | ||||||
|  - all files must have the Apache license in the header. |  | ||||||
|  - indent with 4-spaces, no tabs. No arguments. |  - indent with 4-spaces, no tabs. No arguments. | ||||||
|  - opening brace on same line as `if`/`for`/`function` and so on, closing brace |  - opening brace on same line as `if`/`for`/`function` and so on, closing brace | ||||||
|  on its own line. |  on its own line. | ||||||
|   | |||||||
| @@ -319,7 +319,7 @@ module.exports = function(RED) { | |||||||
|                         } |                         } | ||||||
|  |  | ||||||
|                         var marks = false; |                         var marks = false; | ||||||
|                         if (this.disposition === "Read") { marks = true; } |                         if (node.disposition === "Read") { marks = true; } | ||||||
|                         // We have the search results that contain the list of unseen messages and can now fetch those messages. |                         // We have the search results that contain the list of unseen messages and can now fetch those messages. | ||||||
|                         var fetch = imap.fetch(results, { |                         var fetch = imap.fetch(results, { | ||||||
|                             bodies: '', |                             bodies: '', | ||||||
| @@ -351,8 +351,8 @@ module.exports = function(RED) { | |||||||
|  |  | ||||||
|                         // When we have fetched all the messages, we don't need the imap connection any more. |                         // When we have fetched all the messages, we don't need the imap connection any more. | ||||||
|                         fetch.on('end', function() { |                         fetch.on('end', function() { | ||||||
|  |                             node.status({}); | ||||||
|                             var cleanup = function() { |                             var cleanup = function() { | ||||||
|                                 node.status({}); |  | ||||||
|                                 imap.end(); |                                 imap.end(); | ||||||
|                             }; |                             }; | ||||||
|                             if (this.disposition === "Delete") { |                             if (this.disposition === "Delete") { | ||||||
| @@ -370,8 +370,8 @@ module.exports = function(RED) { | |||||||
|                     }); // End of imap->search |                     }); // End of imap->search | ||||||
|                 }); // End of imap->openInbox |                 }); // End of imap->openInbox | ||||||
|             }); // End of imap->ready |             }); // End of imap->ready | ||||||
|             imap.connect(); |  | ||||||
|             node.status({fill:"grey",shape:"dot",text:"node-red:common.status.connecting"}); |             node.status({fill:"grey",shape:"dot",text:"node-red:common.status.connecting"}); | ||||||
|  |             imap.connect(); | ||||||
|         } // End of checkIMAP |         } // End of checkIMAP | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| { | { | ||||||
|   "name": "node-red-node-email", |   "name": "node-red-node-email", | ||||||
|   "version": "0.1.14", |   "version": "0.1.15", | ||||||
|   "description": "Node-RED nodes to send and receive simple emails", |   "description": "Node-RED nodes to send and receive simple emails", | ||||||
|   "dependencies": { |   "dependencies": { | ||||||
|     "nodemailer": "^1.11.0", |     "nodemailer": "^1.11.0", | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user