added support for imap 'autotls' option to 'email in' node (#796)

* added support for imap 'autotls' option to 'email in' node
This commit is contained in:
HiroP0
2021-04-14 18:28:03 +02:00
committed by GitHub
parent 8412beedf2
commit 13d534ee54
6 changed files with 20 additions and 0 deletions

View File

@@ -126,6 +126,14 @@
<label for="node-input-useSSL"><i class="fa fa-lock"></i> <span data-i18n="email.label.useSSL"></span></label>
<input type="checkbox" id="node-input-useSSL" style="width: auto;">
</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>
</div>
<div class="form-row">
<label for="node-input-server"><i class="fa fa-globe"></i> <span data-i18n="email.label.server"></span></label>
<input type="text" id="node-input-server" placeholder="imap.gmail.com">
@@ -202,10 +210,12 @@
$("#node-input-protocol").change(function() {
var protocol = $("#node-input-protocol").val();
if (protocol === "IMAP") {
$(".node-input-autotls").show();
$(".node-input-box").show();
$(".node-input-disposition").show();
$(".node-input-criteria").show();
} else {
$(".node-input-autotls").hide();
$(".node-input-box").hide();
$(".node-input-disposition").hide();
$(".node-input-criteria").hide();
@@ -225,6 +235,7 @@
protocol: {value: "IMAP", required:true}, // Which protocol to use to connect to the mail server ("IMAP" or "POP3")
server: {value:"imap.gmail.com",required:true},
useSSL: {value: true},
autotls: {value: "never"},
port: {value:"993",required:true},
box: {value:"INBOX"}, // For IMAP, The mailbox to process
disposition: { value: "Read" }, // For IMAP, the disposition of the read email