1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

clarify email node tls? option flag

This commit is contained in:
Dave Conway-Jones 2021-05-11 09:22:09 +01:00
parent b37d215659
commit 0d1a41f18a
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
6 changed files with 12 additions and 10 deletions

View File

@ -51,12 +51,12 @@
<div class="form-row"> <div class="form-row">
<label for="node-input-useTLS"><i class="fa fa-lock"></i> <span data-i18n="email.label.useTLS"></label> <label for="node-input-useTLS"><i class="fa fa-lock"></i> <span data-i18n="email.label.useTLS"></label>
<input type="checkbox" id="node-input-tls" style="display:inline-block; width:20px; vertical-align:baseline;"> <input type="checkbox" id="node-input-tls" style="display:inline-block; width:20px; vertical-align:baseline;">
<span data-i18n="email.label.rejectUnauthorised"></span>
</div> </div>
<div class="form-row"> <div class="form-row">
<label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label> <label for="node-input-dname"><i class="fa fa-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
<input type="text" id="node-input-dname" data-i18n="[placeholder]node-red:common.label.name"> <input type="text" id="node-input-dname" data-i18n="[placeholder]node-red:common.label.name">
</div> </div>
<div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div> <div class="form-tips" id="node-tip"><span data-i18n="[html]email.tip.cred"></span></div>
</script> </script>

View File

@ -58,9 +58,7 @@ module.exports = function(RED) {
if (flag) { if (flag) {
RED.nodes.addCredentials(n.id,{userid:this.userid, password:this.password, global:true}); RED.nodes.addCredentials(n.id,{userid:this.userid, password:this.password, global:true});
} }
if (n.tls === false) { if (n.tls === false) { this.tls = false; }
this.tls = false;
}
var node = this; var node = this;
var smtpOptions = { var smtpOptions = {

View File

@ -33,7 +33,8 @@
"autotls": "STARTTLS?", "autotls": "STARTTLS?",
"never": "nie", "never": "nie",
"required": "wenn erforderlich", "required": "wenn erforderlich",
"always": "immer" "always": "immer",
"rejectUnauthorised": "Überprüfen sie, ob das serverzertifikat gültig ist"
}, },
"default-message": "__description__\n\nDatei von Node-RED ist angehängt: __filename__", "default-message": "__description__\n\nDatei von Node-RED ist angehängt: __filename__",
"tip": { "tip": {

View File

@ -16,7 +16,7 @@
"folder": "Folder", "folder": "Folder",
"protocol": "Protocol", "protocol": "Protocol",
"useSSL": "Use SSL?", "useSSL": "Use SSL?",
"useTLS": "Use TLS?", "useTLS": "TLS option",
"disposition": "Disposition", "disposition": "Disposition",
"none": "None", "none": "None",
"read": "Mark Read", "read": "Mark Read",
@ -33,7 +33,8 @@
"autotls": "Start TLS?", "autotls": "Start TLS?",
"never": "never", "never": "never",
"required": "if required", "required": "if required",
"always": "always" "always": "always",
"rejectUnauthorised": "Check server certificate is valid"
}, },
"default-message": "__description__\n\nFile from Node-RED is attached: __filename__", "default-message": "__description__\n\nFile from Node-RED is attached: __filename__",
"tip": { "tip": {

View File

@ -12,6 +12,7 @@
"folder": "フォルダ", "folder": "フォルダ",
"protocol": "プロトコル", "protocol": "プロトコル",
"useSSL": "SSLを使用", "useSSL": "SSLを使用",
"useTLS": "TLSオプション",
"disposition": "受信後の処理", "disposition": "受信後の処理",
"none": "なし", "none": "なし",
"read": "既読", "read": "既読",
@ -20,7 +21,8 @@
"autotls": "TLSを開始?", "autotls": "TLSを開始?",
"never": "なし", "never": "なし",
"always": "常時", "always": "常時",
"required": "必要な場合" "required": "必要な場合",
"rejectUnauthorised": "チェックサーバ証明書は有効です"
}, },
"default-message": "__description__\n\nNode-REDからファイルが添付されました: __filename__", "default-message": "__description__\n\nNode-REDからファイルが添付されました: __filename__",
"tip": { "tip": {

View File

@ -1,12 +1,12 @@
{ {
"name": "node-red-node-email", "name": "node-red-node-email",
"version": "1.12.0", "version": "1.12.1",
"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",
"poplib": "^0.1.7", "poplib": "^0.1.7",
"mailparser": "^3.2.0", "mailparser": "^3.2.0",
"nodemailer": "~6.5.0", "nodemailer": "~6.6.0",
"smtp-server": "^3.8.0" "smtp-server": "^3.8.0"
}, },
"bundledDependencies": [ "bundledDependencies": [