Intial Commit

This commit is contained in:
valki
2020-10-17 18:42:50 +02:00
commit 664c6d8ca3
5892 changed files with 759183 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
<script type="text/html" data-help-name="e-mail">
<p>Sends the <code>msg.payload</code> as an email, with a subject of <code>msg.topic</code>.</p>
<p>The default message recipient can be configured in the node, if it is left
blank it should be set using the <code>msg.to</code> property of the incoming message. If left blank
you can also specify any or all of: <code>msg.cc</code>, <code>msg.bcc</code>, <code>msg.replyTo</code>, <code>msg.inReplyTo</code>, <code>msg.references</code> properties.</p>
<p>You may optionally set <code>msg.from</code> in the payload which will override the <code>userid</code>
default value.</p>
<h3>GMail users</h3>
<p>If you are accessing GMail you may need to either enable <a target="_new" href="https://support.google.com/mail/answer/185833?hl=en">an application password</a>,
or enable <a target="_new" href="https://support.google.com/accounts/answer/6010255?hl=en">less secure access</a> via your Google account settings.</p>
<h3>Details</h3>
<p>The payload can be html format.</p>
<p>If the payload is a binary buffer then it will be converted to an attachment.
The filename should be set using <code>msg.filename</code>. Optionally <code>msg.description</code> can be added for the body text.</p>
<p>Alternatively you may provide <code>msg.attachments</code> which should contain an array of one or
more attachments in <a href="https://nodemailer.com/message/attachments/" target="_new">nodemailer</a> format.</p>
<p>If required by your recipient you may also pass in a <code>msg.envelope</code> object, typically containing extra from and to properties.</p>
<p>If you have own signed certificates, Nodemailer can complain about that and refuse sending the message. In this case you can try switching off TLS.</p>
<p>Note: uses SMTP with SSL to port 465.</p>
</script>
<script type="text/html" data-help-name="e-mail in">
<p>Repeatedly gets emails from an IMAP server and forwards on as a msg if not already seen.</p>
<p>The subject is loaded into <code>msg.topic</code> and <code>msg.payload</code> is the plain text body.
If there is text/html then that is returned in <code>msg.html</code>. <code>msg.from</code> and <code>msg.date</code> are also set if you need them.</p>
<p>Additionally <code>msg.header</code> contains the complete header object including
<i>to</i>, <i>cc</i> and other potentially useful properties.</p>
<p>It can optionally mark the message as Read (default), Delete it, or leave unmarked (None).</p>
<p>Uses the imap module.</p>
<p><b>Note:</b> this node <i>only</i> gets the most recent single email from the inbox, so set the repeat (polling) time appropriately.</p>
<p>Note: uses IMAP with SSL to port 993.</p>
<p>Any attachments supplied in the incoming email can be found in the <code>msg.attachments</code> property. This will be an array of objects where
each object represents a specific attachments. The format of the object is:</p>
<pre>
{
contentType: // The MIME content description
fileName: // A suggested file name associated with this attachment
transferEncoding: // How was the original email attachment encodded?
contentDisposition: // Unknown
generatedFileName: // A suggested file name associated with this attachment
contentId: // A unique generated ID for this attachment
checksum: // A checksum against the data
length: // Size of data in bytes
content: // The actual content of the data contained in a Node.js Buffer object
// We can turn this into a base64 data string with content.toString('base64')
}
</pre>
<p>For POP3, the default port numbers are 110 for plain TCP and 995 for SSL. For IMAP the port numbers are 143 for plain TCP and 993 for SSL.</p>
<p>The maximum refresh interval is 2147483 seconds (24.8 days).</p>
</script>

View File

@@ -0,0 +1,63 @@
{
"email": {
"email": "email",
"label": {
"getmail":"Get mail",
"auto": "automatically",
"trigger": "when triggered",
"to": "To",
"server": "Server",
"port": "Port",
"useSecureConnection": "Use secure connection.",
"userid": "Userid",
"password": "Password",
"repeat": "every",
"seconds": "seconds",
"folder": "Folder",
"protocol": "Protocol",
"useSSL": "Use SSL?",
"useTLS": "Use TLS?",
"disposition": "Disposition",
"none": "None",
"read": "Mark Read",
"delete": "Delete",
"criteria": "Criteria",
"criteriaFromMsg": "- set from msg.criteria -",
"all": "All",
"answered": "Answered",
"flagged": "Flagged",
"seen": "Seen",
"unanswered": "Unanswered",
"unflagged": "Unflagged",
"unseen": "Unseen"
},
"default-message": "__description__\n\nFile from Node-RED is attached: __filename__",
"tip": {
"cred": "<b>Note:</b> Copied credentials from global emailkeys.js file.",
"recent": "Tip: Only retrieves the single most recent email."
},
"status": {
"messagesent": "Message sent: __response__",
"fetching": "fetching",
"foldererror": "fetch folder error",
"messageerror": "fetch message error",
"message": "message #__number__",
"newemail": "received new email: __topic__",
"duplicate": "duplicate not sent: __topic__",
"inboxzero": "you have achieved Inbox Zero",
"sending": "sending",
"sendfail": "send failed",
"connecterror": "connect error"
},
"errors": {
"nouserid": "No e-mail userid set",
"nopassword": "No e-mail password set",
"nocredentials": "No Email credentials found. See info panel.",
"nosmtptransport": "No SMTP transport. See info panel.",
"nopayload": "No payload to send",
"fetchfail": "Failed to fetch folder: __folder__",
"messageerror": "Fetch message error: __error__",
"refreshtoolarge": "Refresh interval too large. Limiting to 2147483 seconds"
}
}
}

View File

@@ -0,0 +1,40 @@
<!-- Source revision: https://github.com/node-red/node-red-nodes/commit/45e4c6d9d44b4e62b4be6b3e04728ebe306579f2 -->
<script type="text/html" data-help-name="e-mail">
<p><code>msg.payload</code>email<code>msg.topic</code></p>
<p>メッセージの受信者のデフォルトはノードに設定できます空のままとした場合は入力メッセージの<code>msg.to</code><code>msg.cc</code><code>msg.bcc</code><code>msg.replyTo</code><code>msg.inReplyTo</code><code>msg.references</code></p>
<p><code>msg.from</code><code>ID</code></p>
<p>ペイロードはHTML形式とすることも可能です</p>
<p>ペイロードにバイナリバッファを指定すると添付ファイルに変換しますファイル名は<code>msg.filename</code><code>msg.description</code></p>
<p><code>msg.attachments</code>に<a href="https://www.npmjs.com/package/nodemailer#attachments" target="_new">nodemailer</a>1</p>
<p>受信側で必要な場合には<code>msg.envelope</code>fromto</p>
<p>自己署名証明書を用いる場合Nodemailerはメッセージ送信を拒否することがありますその際はTLSを無効にしてみてください</p>
<p>: SMTP over SSLを465番ポートで利用</p>
</script>
<script type="text/html" data-help-name="e-mail in">
<p>IMAPサーバから<b>emailを一件</b></p>
<p>件名を<code>msg.topic</code><code>msg.payload</code>text/html<code>msg.html</code><code>msg.from</code><code>msg.date</code></p>
<p>さらに<code>msg.header</code>からヘッダオブジェクトを参照できます。ヘッダオブジェクトは<i>to</i><i>cc</i></p>
<p>この実装にはimapモジュールを利用しています</p>
<p><b>:</b> 1</p>
<p>: SMTP over SSLを993番ポートで利用します</p>
<p>入力メールに添付ファイルがある場合は<code>msg.attachments</code>:</p>
<pre>
{
contentType: // MIME項目種別
fileName: // 添付ファイルの想定ファイル名
transferEncoding: // 元の添付ファイルのエンコーディング
contentDisposition: // 不明
generatedFileName: // 添付ファイルの想定ファイル名
contentId: // 添付ファイルの一意な識別子
checksum: // データのチェックサム
length: // データのバイト数
content: // 実際のデータを表すNode.jsのバッファオブジェクト
// content.toString('base64')によりbase64形式の文字列に変換可能
}
</pre>
<p>POP3プロトコルでのデフォルトポート番号は素のTCPでは110番SSLでは995番ですIMAPプロトコルでは素のTCPでは143番SSLでは993番です</p>
</script>

View File

@@ -0,0 +1,49 @@
{
"email": {
"label": {
"to": "宛先",
"server": "サーバ",
"port": "ポート",
"useSecureConnection": "安全な接続を使用",
"userid": "ユーザID",
"password": "パスワード",
"repeat": "更新",
"seconds": "秒",
"folder": "フォルダ",
"protocol": "プロトコル",
"useSSL": "SSLを使用",
"disposition": "受信後の処理",
"none": "なし",
"read": "既読",
"delete": "削除",
"criteriaFromMsg": "- msg.criteriaから使用 -"
},
"default-message": "__description__\n\nNode-REDからファイルが添付されました: __filename__",
"tip": {
"cred": "<b>注釈:</b> emailkeys.jsファイルから認証情報をコピーしました。",
"recent": "注釈: 最新のメールを1件のみ取得します。"
},
"status": {
"messagesent": "メッセージを送信しました: __response__",
"fetching": "受信中",
"foldererror": "フォルダ受信エラー",
"messageerror": "メッセージ受信エラー",
"message": "メッセージ #__number__",
"newemail": "新しいe-mailを受信しました: __topic__",
"duplicate": "重複したメッセージは送信されません: __topic__",
"inboxzero": "受信トレイにメールがありません",
"sending": "送信中",
"sendfail": "送信が失敗しました",
"connecterror": "接続エラー"
},
"errors": {
"nouserid": "e-mailのユーザIDが設定されていません",
"nopassword": "e-mailのパスワードが設定されていません",
"nocredentials": "e-mailの認証情報がありません。「情報」タブを参照してください",
"nosmtptransport": "SMTP転送が設定されていません。「情報」タブを参照してください",
"nopayload": "送信するペイロードがありません",
"fetchfail": "フォルダの受信に失敗しました: __folder__",
"messageerror": "メッセージ受信エラー: __error__"
}
}
}