mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	handle pure plain text messages in email node.
This commit is contained in:
		| @@ -201,8 +201,10 @@ module.exports = function(RED) { | ||||
|                                             if (parts[p].indexOf("text/plain") >= 0) { | ||||
|                                                 pay.payload = parts[p].split("\n").slice(1,-2).join("\n").trim(); | ||||
|                                             } | ||||
|                                             if (parts[p].indexOf("text/html") >= 0) { | ||||
|                                             else if (parts[p].indexOf("text/html") >= 0) { | ||||
|                                                 pay.html = parts[p].split("\n").slice(1,-2).join("\n").trim(); | ||||
|                                             } else { | ||||
|                                                 pay.payload = parts[0]; | ||||
|                                             } | ||||
|                                         } | ||||
|                                         //pay.body = buffer; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user