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

Add StartTLS option to email node

This commit is contained in:
Dave Conway-Jones 2021-04-15 10:32:40 +01:00
parent 13d534ee54
commit 246463752e
No known key found for this signature in database
GPG Key ID: 88BA2B8A411BE9FF
5 changed files with 26 additions and 15 deletions

View File

@ -128,11 +128,11 @@
</div>
<div class="form-row">
<label for="node-input-autotls"><i class="fa fa-lock"></i> <span data-i18n="email.label.autotls"></label>
<select type="text" id="node-input-autotls" style="width: 150px;">
<option value="never" data-i18n="email.label.never">never</option>
<option value="always" data-i18n="email.label.always">always</option>
<option value="required" data-i18n="email.label.required">required</option>
</select>
<select type="text" id="node-input-autotls" style="width: 150px;">
<option value="never" data-i18n="email.label.never"></option>
<option value="required" data-i18n="email.label.required"></option>
<option value="always" data-i18n="email.label.always"></option>
</select>
</div>
<div class="form-row">
<label for="node-input-server"><i class="fa fa-globe"></i> <span data-i18n="email.label.server"></span></label>
@ -276,6 +276,10 @@
$("#node-input-criteria").val("UNSEEN");
this.criteria = "UNSEEN";
}
if (typeof this.autotls === 'undefined') {
$("#node-input-autotls").val("never");
this.autotls = "never";
}
if ($("#node-input-fetch").val() === null) { $("#node-input-fetch").val("auto"); }
$("#node-input-fetch").change(function() {
if ($("#node-input-fetch").val() === "trigger") {

View File

@ -16,10 +16,6 @@
"folder": "Verzeichnis",
"protocol": "Protokoll",
"useSSL": "SSL",
"autotls": "STARTTLS?",
"never": "nie",
"required": "wenn erforderlich",
"always": "immer",
"useTLS": "TLS",
"disposition": "Behandlung",
"none": "Keine",
@ -33,7 +29,11 @@
"seen": "Gesichtet",
"unanswered": "Unbeantwortet",
"unflagged": "Unmarkiert",
"unseen": "Ungesehen"
"unseen": "Ungesehen",
"autotls": "STARTTLS?",
"never": "nie",
"required": "wenn erforderlich",
"always": "immer"
},
"default-message": "__description__\n\nDatei von Node-RED ist angehängt: __filename__",
"tip": {

View File

@ -16,7 +16,6 @@
"folder": "Folder",
"protocol": "Protocol",
"useSSL": "Use SSL?",
"autotls": "STARTTLS?",
"useTLS": "Use TLS?",
"disposition": "Disposition",
"none": "None",
@ -30,7 +29,11 @@
"seen": "Seen",
"unanswered": "Unanswered",
"unflagged": "Unflagged",
"unseen": "Unseen"
"unseen": "Unseen",
"autotls": "Start TLS?",
"never": "never",
"required": "if required",
"always": "always"
},
"default-message": "__description__\n\nFile from Node-RED is attached: __filename__",
"tip": {

View File

@ -16,7 +16,11 @@
"none": "なし",
"read": "既読",
"delete": "削除",
"criteriaFromMsg": "- msg.criteriaから使用 -"
"criteriaFromMsg": "- msg.criteriaから使用 -",
"autotls": "TLSを開始?",
"never": "なし",
"always": "常時",
"required": "必要な場合"
},
"default-message": "__description__\n\nNode-REDからファイルが添付されました: __filename__",
"tip": {

View File

@ -1,11 +1,11 @@
{
"name": "node-red-node-email",
"version": "1.11.1",
"version": "1.12.0",
"description": "Node-RED nodes to send and receive simple emails.",
"dependencies": {
"imap": "^0.8.19",
"poplib": "^0.1.7",
"mailparser": "^3.1.0",
"mailparser": "^3.2.0",
"nodemailer": "~6.5.0",
"smtp-server": "^3.8.0"
},