@bobfrankston/mailx 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.tswalk.json +3366 -0
- package/README.md +160 -0
- package/bin/mailx.js +58 -0
- package/client/app.js +431 -0
- package/client/components/folder-tree.js +286 -0
- package/client/components/message-list.js +230 -0
- package/client/components/message-viewer.js +161 -0
- package/client/compose/compose.css +197 -0
- package/client/compose/compose.html +45 -0
- package/client/compose/compose.js +335 -0
- package/client/favicon.svg +11 -0
- package/client/index.html +100 -0
- package/client/lib/api-client.js +67 -0
- package/client/package.json +9 -0
- package/client/styles/components.css +361 -0
- package/client/styles/layout.css +69 -0
- package/launch.ps1 +20 -0
- package/launcher/Cargo.lock +3167 -0
- package/launcher/Cargo.toml +13 -0
- package/launcher/build.cmd +4 -0
- package/launcher/build.rs +8 -0
- package/launcher/mailx.ico +0 -0
- package/launcher/release.cmd +4 -0
- package/launcher/src/main.rs +371 -0
- package/mailx.cmd +2 -0
- package/mailx.db +0 -0
- package/mailx.db-shm +0 -0
- package/mailx.db-wal +0 -0
- package/mailx.json +9 -0
- package/package.json +51 -0
- package/packages/mailx-api/index.d.ts +9 -0
- package/packages/mailx-api/index.js +375 -0
- package/packages/mailx-api/node_modules/nodemailer/.ncurc.js +9 -0
- package/packages/mailx-api/node_modules/nodemailer/.prettierignore +8 -0
- package/packages/mailx-api/node_modules/nodemailer/.prettierrc +12 -0
- package/packages/mailx-api/node_modules/nodemailer/.prettierrc.js +10 -0
- package/packages/mailx-api/node_modules/nodemailer/.release-please-config.json +9 -0
- package/packages/mailx-api/node_modules/nodemailer/LICENSE +16 -0
- package/packages/mailx-api/node_modules/nodemailer/README.md +86 -0
- package/packages/mailx-api/node_modules/nodemailer/SECURITY.txt +22 -0
- package/packages/mailx-api/node_modules/nodemailer/eslint.config.js +88 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/addressparser/index.js +383 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/base64/index.js +139 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/dkim/index.js +253 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/dkim/sign.js +117 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/fetch/index.js +280 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/json-transport/index.js +82 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mailer/index.js +441 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/nodemailer.js +157 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/punycode/index.js +460 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/qp/index.js +227 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/shared/index.js +754 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/well-known/index.js +47 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/well-known/services.json +611 -0
- package/packages/mailx-api/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
- package/packages/mailx-api/node_modules/nodemailer/package.json +47 -0
- package/packages/mailx-api/package.json +24 -0
- package/packages/mailx-api/tsconfig.tsbuildinfo +1 -0
- package/packages/mailx-compose/index.d.ts +21 -0
- package/packages/mailx-compose/index.js +61 -0
- package/packages/mailx-compose/package.json +14 -0
- package/packages/mailx-imap/index.d.ts +105 -0
- package/packages/mailx-imap/index.js +1026 -0
- package/packages/mailx-imap/node_modules/nodemailer/.ncurc.js +9 -0
- package/packages/mailx-imap/node_modules/nodemailer/.prettierignore +8 -0
- package/packages/mailx-imap/node_modules/nodemailer/.prettierrc +12 -0
- package/packages/mailx-imap/node_modules/nodemailer/.prettierrc.js +10 -0
- package/packages/mailx-imap/node_modules/nodemailer/.release-please-config.json +9 -0
- package/packages/mailx-imap/node_modules/nodemailer/LICENSE +16 -0
- package/packages/mailx-imap/node_modules/nodemailer/README.md +86 -0
- package/packages/mailx-imap/node_modules/nodemailer/SECURITY.txt +22 -0
- package/packages/mailx-imap/node_modules/nodemailer/eslint.config.js +88 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/addressparser/index.js +383 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/base64/index.js +139 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/index.js +253 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/sign.js +117 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/fetch/index.js +280 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/json-transport/index.js +82 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mailer/index.js +441 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/nodemailer.js +157 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/punycode/index.js +460 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/qp/index.js +227 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/shared/index.js +754 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/well-known/index.js +47 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/well-known/services.json +611 -0
- package/packages/mailx-imap/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
- package/packages/mailx-imap/node_modules/nodemailer/package.json +47 -0
- package/packages/mailx-imap/package.json +19 -0
- package/packages/mailx-imap/tsconfig.tsbuildinfo +1 -0
- package/packages/mailx-send/README.md +217 -0
- package/packages/mailx-send/cli-queue.d.ts +11 -0
- package/packages/mailx-send/cli-queue.js +59 -0
- package/packages/mailx-send/cli-send.d.ts +17 -0
- package/packages/mailx-send/cli-send.js +75 -0
- package/packages/mailx-send/cli.d.ts +22 -0
- package/packages/mailx-send/cli.js +115 -0
- package/packages/mailx-send/index.d.ts +77 -0
- package/packages/mailx-send/index.js +264 -0
- package/packages/mailx-send/mailsend/README.md +133 -0
- package/packages/mailx-send/mailsend/cli.d.ts +12 -0
- package/packages/mailx-send/mailsend/cli.js +70 -0
- package/packages/mailx-send/mailsend/index.d.ts +77 -0
- package/packages/mailx-send/mailsend/index.js +264 -0
- package/packages/mailx-send/mailsend/node_modules/.package-lock.json +49 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/LICENSE +21 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/README.md +15 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/assert.d.ts +1078 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.d.ts +1934 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/child_process.d.ts +1476 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/cluster.d.ts +578 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/console.d.ts +452 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/constants.d.ts +21 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/crypto.d.ts +4545 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/dgram.d.ts +600 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/dns.d.ts +923 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/domain.d.ts +170 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/events.d.ts +976 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/fs.d.ts +4461 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/globals.d.ts +172 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/http.d.ts +2089 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/http2.d.ts +2644 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/https.d.ts +579 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/index.d.ts +97 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.d.ts +253 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/module.d.ts +891 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/net.d.ts +1057 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/os.d.ts +506 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/package.json +145 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/path.d.ts +200 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/process.d.ts +2084 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/punycode.d.ts +117 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/querystring.d.ts +152 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/readline.d.ts +594 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/repl.d.ts +428 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/sea.d.ts +153 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/sqlite.d.ts +721 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream/web.d.ts +622 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/stream.d.ts +1664 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/test.d.ts +2163 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/timers.d.ts +287 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/tls.d.ts +1319 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/trace_events.d.ts +197 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/tty.d.ts +208 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/url.d.ts +984 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/util.d.ts +2606 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/v8.d.ts +920 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/vm.d.ts +1000 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/wasi.d.ts +181 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/packages/mailx-send/mailsend/node_modules/@types/node/zlib.d.ts +747 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/LICENSE +21 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/README.md +15 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/index.d.ts +82 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +31 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/base64/index.d.ts +22 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/index.d.ts +45 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +75 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +75 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +21 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +54 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/index.d.ts +38 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +53 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +25 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/index.d.ts +283 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +32 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +87 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +2 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +224 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +9 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/qp/index.d.ts +23 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +53 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +7 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +7 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +146 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/shared/index.d.ts +58 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +11 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +16 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +270 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +93 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +66 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +115 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +59 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/well-known/index.d.ts +6 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +114 -0
- package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/package.json +38 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.ncurc.js +9 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierignore +8 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc +12 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc.js +10 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/.release-please-config.json +9 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/LICENSE +16 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/README.md +86 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/SECURITY.txt +22 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/eslint.config.js +88 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/addressparser/index.js +383 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/base64/index.js +139 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/index.js +253 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/sign.js +117 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/index.js +280 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/json-transport/index.js +82 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/index.js +441 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/nodemailer.js +157 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/punycode/index.js +460 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/qp/index.js +227 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/shared/index.js +754 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/index.js +47 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/services.json +611 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
- package/packages/mailx-send/mailsend/node_modules/nodemailer/package.json +47 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/LICENSE +21 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/README.md +6 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/agent.d.ts +31 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/api.d.ts +43 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/cache.d.ts +36 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/client.d.ts +108 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/connector.d.ts +34 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/content-type.d.ts +21 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/cookies.d.ts +28 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/errors.d.ts +149 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/eventsource.d.ts +61 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/fetch.d.ts +209 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/file.d.ts +39 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/filereader.d.ts +54 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/formdata.d.ts +108 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/global-origin.d.ts +7 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/handlers.d.ts +15 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/header.d.ts +4 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/index.d.ts +71 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/interceptors.d.ts +17 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-client.d.ts +25 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/package.json +55 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/patch.d.ts +33 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/pool.d.ts +39 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/readable.d.ts +65 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/util.d.ts +18 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/webidl.d.ts +228 -0
- package/packages/mailx-send/mailsend/node_modules/undici-types/websocket.d.ts +150 -0
- package/packages/mailx-send/mailsend/package.json +26 -0
- package/packages/mailx-send/node_modules/.package-lock.json +49 -0
- package/packages/mailx-send/node_modules/@types/node/LICENSE +21 -0
- package/packages/mailx-send/node_modules/@types/node/README.md +15 -0
- package/packages/mailx-send/node_modules/@types/node/assert/strict.d.ts +111 -0
- package/packages/mailx-send/node_modules/@types/node/assert.d.ts +1078 -0
- package/packages/mailx-send/node_modules/@types/node/async_hooks.d.ts +603 -0
- package/packages/mailx-send/node_modules/@types/node/buffer.buffer.d.ts +472 -0
- package/packages/mailx-send/node_modules/@types/node/buffer.d.ts +1934 -0
- package/packages/mailx-send/node_modules/@types/node/child_process.d.ts +1476 -0
- package/packages/mailx-send/node_modules/@types/node/cluster.d.ts +578 -0
- package/packages/mailx-send/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/packages/mailx-send/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/packages/mailx-send/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/packages/mailx-send/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/packages/mailx-send/node_modules/@types/node/console.d.ts +452 -0
- package/packages/mailx-send/node_modules/@types/node/constants.d.ts +21 -0
- package/packages/mailx-send/node_modules/@types/node/crypto.d.ts +4545 -0
- package/packages/mailx-send/node_modules/@types/node/dgram.d.ts +600 -0
- package/packages/mailx-send/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/packages/mailx-send/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/packages/mailx-send/node_modules/@types/node/dns.d.ts +923 -0
- package/packages/mailx-send/node_modules/@types/node/domain.d.ts +170 -0
- package/packages/mailx-send/node_modules/@types/node/events.d.ts +976 -0
- package/packages/mailx-send/node_modules/@types/node/fs/promises.d.ts +1295 -0
- package/packages/mailx-send/node_modules/@types/node/fs.d.ts +4461 -0
- package/packages/mailx-send/node_modules/@types/node/globals.d.ts +172 -0
- package/packages/mailx-send/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/packages/mailx-send/node_modules/@types/node/http.d.ts +2089 -0
- package/packages/mailx-send/node_modules/@types/node/http2.d.ts +2644 -0
- package/packages/mailx-send/node_modules/@types/node/https.d.ts +579 -0
- package/packages/mailx-send/node_modules/@types/node/index.d.ts +97 -0
- package/packages/mailx-send/node_modules/@types/node/inspector.d.ts +253 -0
- package/packages/mailx-send/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/packages/mailx-send/node_modules/@types/node/module.d.ts +891 -0
- package/packages/mailx-send/node_modules/@types/node/net.d.ts +1057 -0
- package/packages/mailx-send/node_modules/@types/node/os.d.ts +506 -0
- package/packages/mailx-send/node_modules/@types/node/package.json +145 -0
- package/packages/mailx-send/node_modules/@types/node/path.d.ts +200 -0
- package/packages/mailx-send/node_modules/@types/node/perf_hooks.d.ts +968 -0
- package/packages/mailx-send/node_modules/@types/node/process.d.ts +2084 -0
- package/packages/mailx-send/node_modules/@types/node/punycode.d.ts +117 -0
- package/packages/mailx-send/node_modules/@types/node/querystring.d.ts +152 -0
- package/packages/mailx-send/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/packages/mailx-send/node_modules/@types/node/readline.d.ts +594 -0
- package/packages/mailx-send/node_modules/@types/node/repl.d.ts +428 -0
- package/packages/mailx-send/node_modules/@types/node/sea.d.ts +153 -0
- package/packages/mailx-send/node_modules/@types/node/sqlite.d.ts +721 -0
- package/packages/mailx-send/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/packages/mailx-send/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/packages/mailx-send/node_modules/@types/node/stream/web.d.ts +622 -0
- package/packages/mailx-send/node_modules/@types/node/stream.d.ts +1664 -0
- package/packages/mailx-send/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/packages/mailx-send/node_modules/@types/node/test.d.ts +2163 -0
- package/packages/mailx-send/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/packages/mailx-send/node_modules/@types/node/timers.d.ts +287 -0
- package/packages/mailx-send/node_modules/@types/node/tls.d.ts +1319 -0
- package/packages/mailx-send/node_modules/@types/node/trace_events.d.ts +197 -0
- package/packages/mailx-send/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/packages/mailx-send/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/packages/mailx-send/node_modules/@types/node/ts5.6/index.d.ts +97 -0
- package/packages/mailx-send/node_modules/@types/node/tty.d.ts +208 -0
- package/packages/mailx-send/node_modules/@types/node/url.d.ts +984 -0
- package/packages/mailx-send/node_modules/@types/node/util.d.ts +2606 -0
- package/packages/mailx-send/node_modules/@types/node/v8.d.ts +920 -0
- package/packages/mailx-send/node_modules/@types/node/vm.d.ts +1000 -0
- package/packages/mailx-send/node_modules/@types/node/wasi.d.ts +181 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/packages/mailx-send/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/packages/mailx-send/node_modules/@types/node/worker_threads.d.ts +784 -0
- package/packages/mailx-send/node_modules/@types/node/zlib.d.ts +747 -0
- package/packages/mailx-send/node_modules/nodemailer/.ncurc.js +9 -0
- package/packages/mailx-send/node_modules/nodemailer/.prettierignore +8 -0
- package/packages/mailx-send/node_modules/nodemailer/.prettierrc +12 -0
- package/packages/mailx-send/node_modules/nodemailer/.prettierrc.js +10 -0
- package/packages/mailx-send/node_modules/nodemailer/.release-please-config.json +9 -0
- package/packages/mailx-send/node_modules/nodemailer/LICENSE +16 -0
- package/packages/mailx-send/node_modules/nodemailer/README.md +86 -0
- package/packages/mailx-send/node_modules/nodemailer/SECURITY.txt +22 -0
- package/packages/mailx-send/node_modules/nodemailer/eslint.config.js +88 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/addressparser/index.js +383 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/base64/index.js +139 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/dkim/index.js +253 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/dkim/sign.js +117 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/fetch/index.js +280 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/json-transport/index.js +82 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mailer/index.js +441 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/nodemailer.js +157 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/punycode/index.js +460 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/qp/index.js +227 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/shared/index.js +754 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/well-known/index.js +47 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/well-known/services.json +611 -0
- package/packages/mailx-send/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
- package/packages/mailx-send/node_modules/nodemailer/package.json +47 -0
- package/packages/mailx-send/node_modules/undici-types/LICENSE +21 -0
- package/packages/mailx-send/node_modules/undici-types/README.md +6 -0
- package/packages/mailx-send/node_modules/undici-types/agent.d.ts +31 -0
- package/packages/mailx-send/node_modules/undici-types/api.d.ts +43 -0
- package/packages/mailx-send/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/packages/mailx-send/node_modules/undici-types/cache.d.ts +36 -0
- package/packages/mailx-send/node_modules/undici-types/client.d.ts +108 -0
- package/packages/mailx-send/node_modules/undici-types/connector.d.ts +34 -0
- package/packages/mailx-send/node_modules/undici-types/content-type.d.ts +21 -0
- package/packages/mailx-send/node_modules/undici-types/cookies.d.ts +28 -0
- package/packages/mailx-send/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/packages/mailx-send/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/packages/mailx-send/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/packages/mailx-send/node_modules/undici-types/errors.d.ts +149 -0
- package/packages/mailx-send/node_modules/undici-types/eventsource.d.ts +61 -0
- package/packages/mailx-send/node_modules/undici-types/fetch.d.ts +209 -0
- package/packages/mailx-send/node_modules/undici-types/file.d.ts +39 -0
- package/packages/mailx-send/node_modules/undici-types/filereader.d.ts +54 -0
- package/packages/mailx-send/node_modules/undici-types/formdata.d.ts +108 -0
- package/packages/mailx-send/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/packages/mailx-send/node_modules/undici-types/global-origin.d.ts +7 -0
- package/packages/mailx-send/node_modules/undici-types/handlers.d.ts +15 -0
- package/packages/mailx-send/node_modules/undici-types/header.d.ts +4 -0
- package/packages/mailx-send/node_modules/undici-types/index.d.ts +71 -0
- package/packages/mailx-send/node_modules/undici-types/interceptors.d.ts +17 -0
- package/packages/mailx-send/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/packages/mailx-send/node_modules/undici-types/mock-client.d.ts +25 -0
- package/packages/mailx-send/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/packages/mailx-send/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/packages/mailx-send/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/packages/mailx-send/node_modules/undici-types/package.json +55 -0
- package/packages/mailx-send/node_modules/undici-types/patch.d.ts +33 -0
- package/packages/mailx-send/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/packages/mailx-send/node_modules/undici-types/pool.d.ts +39 -0
- package/packages/mailx-send/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/packages/mailx-send/node_modules/undici-types/readable.d.ts +65 -0
- package/packages/mailx-send/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/packages/mailx-send/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/packages/mailx-send/node_modules/undici-types/util.d.ts +18 -0
- package/packages/mailx-send/node_modules/undici-types/webidl.d.ts +228 -0
- package/packages/mailx-send/node_modules/undici-types/websocket.d.ts +150 -0
- package/packages/mailx-send/package.json +27 -0
- package/packages/mailx-server/index.d.ts +8 -0
- package/packages/mailx-server/index.js +217 -0
- package/packages/mailx-server/package.json +25 -0
- package/packages/mailx-server/tsconfig.tsbuildinfo +1 -0
- package/packages/mailx-settings/index.d.ts +64 -0
- package/packages/mailx-settings/index.js +218 -0
- package/packages/mailx-settings/package.json +16 -0
- package/packages/mailx-settings/tsconfig.tsbuildinfo +1 -0
- package/packages/mailx-store/db.d.ts +100 -0
- package/packages/mailx-store/db.js +461 -0
- package/packages/mailx-store/file-store.d.ts +22 -0
- package/packages/mailx-store/file-store.js +59 -0
- package/packages/mailx-store/index.d.ts +7 -0
- package/packages/mailx-store/index.js +7 -0
- package/packages/mailx-store/package.json +19 -0
- package/packages/mailx-store/tsconfig.tsbuildinfo +1 -0
- package/packages/mailx-types/index.d.ts +195 -0
- package/packages/mailx-types/index.js +7 -0
- package/packages/mailx-types/package.json +12 -0
- package/packages/mailx-types/tsconfig.tsbuildinfo +1 -0
- package/tsconfig.base.json +28 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { Transport, TransportOptions } from "../..";
|
|
4
|
+
|
|
5
|
+
import * as shared from "../shared";
|
|
6
|
+
|
|
7
|
+
import Mail = require("../mailer");
|
|
8
|
+
import MailMessage = require("../mailer/mail-message");
|
|
9
|
+
import MimeNode = require("../mime-node");
|
|
10
|
+
|
|
11
|
+
declare namespace SendmailTransport {
|
|
12
|
+
type MailOptions = Mail.Options;
|
|
13
|
+
|
|
14
|
+
interface Options extends MailOptions, TransportOptions {
|
|
15
|
+
sendmail: true;
|
|
16
|
+
/** path to the sendmail command (defaults to ‘sendmail’) */
|
|
17
|
+
path?: string | undefined;
|
|
18
|
+
/** either ‘windows’ or ‘unix’ (default). Forces all newlines in the output to either use Windows syntax <CR><LF> or Unix syntax <LF> */
|
|
19
|
+
newline?: string | undefined;
|
|
20
|
+
/** an optional array of command line options to pass to the sendmail command (ie. ["-f", "foo@blurdybloop.com"]). This overrides all default arguments except for ’-i’ and recipient list so you need to make sure you have all required arguments set (ie. the ‘-f’ flag). */
|
|
21
|
+
args?: string[] | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface SentMessageInfo {
|
|
25
|
+
envelope: MimeNode.Envelope;
|
|
26
|
+
messageId: string;
|
|
27
|
+
response: string;
|
|
28
|
+
accepted: Array<string | Mail.Address>;
|
|
29
|
+
rejected: Array<string | Mail.Address>;
|
|
30
|
+
pending: Array<string | Mail.Address>;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare class SendmailTransport implements Transport<SendmailTransport.SentMessageInfo> {
|
|
35
|
+
options: SendmailTransport.Options;
|
|
36
|
+
logger: shared.Logger;
|
|
37
|
+
mailer: Mail<SendmailTransport.SentMessageInfo>;
|
|
38
|
+
name: string;
|
|
39
|
+
version: string;
|
|
40
|
+
path: string;
|
|
41
|
+
args: string[] | false;
|
|
42
|
+
winbreak: boolean;
|
|
43
|
+
|
|
44
|
+
constructor(options: SendmailTransport.Options);
|
|
45
|
+
|
|
46
|
+
/** Compiles a mailcomposer message and forwards it to handler that sends it */
|
|
47
|
+
send(
|
|
48
|
+
mail: MailMessage<SendmailTransport.SentMessageInfo>,
|
|
49
|
+
callback: (err: Error | null, info: SendmailTransport.SentMessageInfo) => void,
|
|
50
|
+
): void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export = SendmailTransport;
|
package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { EventEmitter } from "node:events";
|
|
4
|
+
|
|
5
|
+
import { Transport, TransportOptions } from "../..";
|
|
6
|
+
import * as shared from "../shared";
|
|
7
|
+
import Mail = require("../mailer");
|
|
8
|
+
import MailMessage = require("../mailer/mail-message");
|
|
9
|
+
import MimeNode = require("../mime-node");
|
|
10
|
+
|
|
11
|
+
declare namespace SESTransport {
|
|
12
|
+
/**
|
|
13
|
+
* Minimal structural shape of SES SendEmail input.
|
|
14
|
+
* This is intentionally structural so @types/nodemailer does not require
|
|
15
|
+
* installing @aws-sdk/client-ses.
|
|
16
|
+
*
|
|
17
|
+
* If you want the full, exact type, install @aws-sdk/client-ses in your
|
|
18
|
+
* app and use its types directly in your own code.
|
|
19
|
+
*/
|
|
20
|
+
interface SendEmailRequestLike {
|
|
21
|
+
Source?: string;
|
|
22
|
+
Destination?: {
|
|
23
|
+
ToAddresses?: string[];
|
|
24
|
+
CcAddresses?: string[];
|
|
25
|
+
BccAddresses?: string[];
|
|
26
|
+
};
|
|
27
|
+
Message?: unknown;
|
|
28
|
+
ReplyToAddresses?: string[];
|
|
29
|
+
ReturnPath?: string;
|
|
30
|
+
SourceArn?: string;
|
|
31
|
+
ReturnPathArn?: string;
|
|
32
|
+
Tags?: Array<{ Name?: string; Value?: string }>;
|
|
33
|
+
ConfigurationSetName?: string;
|
|
34
|
+
// Allow extra fields without forcing the SDK type package
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/** Structural type matching SES client from @aws-sdk/client-ses */
|
|
39
|
+
interface SESClientLike {
|
|
40
|
+
/** Used with v3 low-level client + SendRawEmailCommand */
|
|
41
|
+
send?(command: unknown): Promise<{ MessageId?: string }>;
|
|
42
|
+
/** Used with v3 high-level SES class or v2 SDK */
|
|
43
|
+
sendRawEmail?(params: unknown, options?: unknown): Promise<{ MessageId?: string }>;
|
|
44
|
+
config?: {
|
|
45
|
+
region?: string | (() => Promise<string>);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/** Structural type matching the aws module shape */
|
|
50
|
+
interface AwsModuleLike {
|
|
51
|
+
SendRawEmailCommand?: unknown;
|
|
52
|
+
[key: string]: unknown;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
interface MailOptions extends Mail.Options {
|
|
56
|
+
/** list of keys that SendRawEmail method can take */
|
|
57
|
+
ses?: MailSesOptions | undefined;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Keep it as an interface for backward-compatibility
|
|
61
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
62
|
+
interface MailSesOptions extends Partial<SendEmailRequestLike> {}
|
|
63
|
+
|
|
64
|
+
interface Options extends MailOptions, TransportOptions {
|
|
65
|
+
/** An option that expects an instantiated aws.SES object */
|
|
66
|
+
SES:
|
|
67
|
+
| {
|
|
68
|
+
ses: SESClientLike;
|
|
69
|
+
aws: AwsModuleLike;
|
|
70
|
+
}
|
|
71
|
+
| SESClientLike;
|
|
72
|
+
/** How many messages per second is allowed to be delivered to SES */
|
|
73
|
+
maxConnections?: number | undefined;
|
|
74
|
+
/** How many parallel connections to allow towards SES */
|
|
75
|
+
sendingRate?: number | undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface SentMessageInfo {
|
|
79
|
+
/** an envelope object {from:'address', to:['address']} */
|
|
80
|
+
envelope: MimeNode.Envelope;
|
|
81
|
+
/** the Message-ID header value. This value is derived from the response of SES API, so it differs from the Message-ID values used in logging. */
|
|
82
|
+
messageId: string;
|
|
83
|
+
response: string;
|
|
84
|
+
accepted: Array<string | Mail.Address>;
|
|
85
|
+
rejected: Array<string | Mail.Address>;
|
|
86
|
+
pending: Array<string | Mail.Address>;
|
|
87
|
+
raw: Buffer;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class SESTransport extends EventEmitter implements Transport<SESTransport.SentMessageInfo> {
|
|
92
|
+
options: SESTransport.Options;
|
|
93
|
+
|
|
94
|
+
logger: shared.Logger;
|
|
95
|
+
mailer: Mail<SESTransport.SentMessageInfo>;
|
|
96
|
+
|
|
97
|
+
name: string;
|
|
98
|
+
version: string;
|
|
99
|
+
|
|
100
|
+
ses: SESTransport.Options["SES"];
|
|
101
|
+
|
|
102
|
+
maxConnections: number;
|
|
103
|
+
connections: number;
|
|
104
|
+
sendingRate: number;
|
|
105
|
+
sendingRateTTL: number | null;
|
|
106
|
+
rateInterval: number;
|
|
107
|
+
rateMessages: Array<{ ts: number; pending: boolean }>;
|
|
108
|
+
pending: Array<
|
|
109
|
+
{
|
|
110
|
+
mail: Mail<SESTransport.SentMessageInfo>;
|
|
111
|
+
callback(err: Error | null, info: SESTransport.SentMessageInfo): void;
|
|
112
|
+
}
|
|
113
|
+
>;
|
|
114
|
+
idling: boolean;
|
|
115
|
+
|
|
116
|
+
constructor(options: SESTransport.Options);
|
|
117
|
+
|
|
118
|
+
/** Schedules a sending of a message */
|
|
119
|
+
send(
|
|
120
|
+
mail: MailMessage<SESTransport.SentMessageInfo>,
|
|
121
|
+
callback: (err: Error | null, info: SESTransport.SentMessageInfo) => void,
|
|
122
|
+
): void;
|
|
123
|
+
|
|
124
|
+
/** Returns true if there are free slots in the queue */
|
|
125
|
+
isIdle(): boolean;
|
|
126
|
+
|
|
127
|
+
/** Verifies SES configuration */
|
|
128
|
+
verify(callback: (err: Error | null, success: true) => void): void;
|
|
129
|
+
verify(): Promise<true>;
|
|
130
|
+
|
|
131
|
+
addListener(event: "idle", listener: () => void): this;
|
|
132
|
+
|
|
133
|
+
emit(event: "idle"): boolean;
|
|
134
|
+
|
|
135
|
+
on(event: "idle", listener: () => void): this;
|
|
136
|
+
|
|
137
|
+
once(event: "idle", listener: () => void): this;
|
|
138
|
+
|
|
139
|
+
prependListener(event: "idle", listener: () => void): this;
|
|
140
|
+
|
|
141
|
+
prependOnceListener(event: "idle", listener: () => void): this;
|
|
142
|
+
|
|
143
|
+
listeners(event: "idle"): Array<() => void>;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export = SESTransport;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import SMTPConnection = require("../smtp-connection");
|
|
4
|
+
|
|
5
|
+
import stream = require("stream");
|
|
6
|
+
|
|
7
|
+
export type LoggerLevel = "trace" | "debug" | "info" | "warn" | "error" | "fatal";
|
|
8
|
+
|
|
9
|
+
export interface Logger {
|
|
10
|
+
level(level: LoggerLevel): void;
|
|
11
|
+
trace(...params: any[]): void;
|
|
12
|
+
debug(...params: any[]): void;
|
|
13
|
+
info(...params: any[]): void;
|
|
14
|
+
warn(...params: any[]): void;
|
|
15
|
+
error(...params: any[]): void;
|
|
16
|
+
fatal(...params: any[]): void;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface ResolveHostnameOptions {
|
|
20
|
+
host?: string | undefined;
|
|
21
|
+
servername?: string | false | undefined;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface ResolveHostnameValue {
|
|
25
|
+
host: string;
|
|
26
|
+
servername: string | false;
|
|
27
|
+
_cached?: true | undefined;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function resolveHostname(
|
|
31
|
+
options: ResolveHostnameOptions | null | undefined,
|
|
32
|
+
callback: (err: Error | null, value: ResolveHostnameValue) => void,
|
|
33
|
+
): void;
|
|
34
|
+
|
|
35
|
+
/** Parses connection url to a structured configuration object */
|
|
36
|
+
export function parseConnectionUrl(url: string): SMTPConnection.Options;
|
|
37
|
+
/** Returns a bunyan-compatible logger interface. Uses either provided logger or creates a default console logger */
|
|
38
|
+
export function getLogger(options?: { [key: string]: any }, defaults?: { [key: string]: any }): Logger;
|
|
39
|
+
/** Wrapper for creating a callback than either resolves or rejects a promise based on input */
|
|
40
|
+
export function callbackPromise(resolve: (...args: any[]) => void, reject: (err: Error) => void): () => void;
|
|
41
|
+
/**
|
|
42
|
+
* Resolves a String or a Buffer value for content value. Useful if the value
|
|
43
|
+
* is a Stream or a file or an URL. If the value is a Stream, overwrites
|
|
44
|
+
* the stream object with the resolved value (you can't stream a value twice).
|
|
45
|
+
*
|
|
46
|
+
* This is useful when you want to create a plugin that needs a content value,
|
|
47
|
+
* for example the `html` or `text` value as a String or a Buffer but not as
|
|
48
|
+
* a file path or an URL.
|
|
49
|
+
*/
|
|
50
|
+
export function resolveContent(
|
|
51
|
+
data: object | any[],
|
|
52
|
+
key: string | number,
|
|
53
|
+
callback: (err: Error | null, value: Buffer | string) => void,
|
|
54
|
+
): void;
|
|
55
|
+
export function resolveContent(data: object | any[], key: string | number): Promise<Buffer | string>;
|
|
56
|
+
/** Copies properties from source objects to target objects */
|
|
57
|
+
export function assign(target: object, ...sources: object[]): object;
|
|
58
|
+
export function encodeXText(str: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { Transform } from "stream";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Escapes dots in the beginning of lines. Ends the stream with <CR><LF>.<CR><LF>
|
|
7
|
+
* Also makes sure that only <CR><LF> sequences are used for linebreaks
|
|
8
|
+
*/
|
|
9
|
+
declare class DataStream extends Transform {}
|
|
10
|
+
|
|
11
|
+
export = DataStream;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { Socket } from "net";
|
|
4
|
+
import { TLSSocket } from "tls";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Establishes proxied connection to destinationPort
|
|
8
|
+
*/
|
|
9
|
+
declare function httpProxyClient(
|
|
10
|
+
proxyUrl: string,
|
|
11
|
+
destinationPort: number,
|
|
12
|
+
destinationHost: string,
|
|
13
|
+
callback: (err: Error | null, socket: TLSSocket | Socket) => void,
|
|
14
|
+
): void;
|
|
15
|
+
|
|
16
|
+
export = httpProxyClient;
|
package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { EventEmitter } from "events";
|
|
4
|
+
import * as net from "net";
|
|
5
|
+
import { Readable } from "stream";
|
|
6
|
+
import * as tls from "tls";
|
|
7
|
+
|
|
8
|
+
import * as shared from "../shared";
|
|
9
|
+
|
|
10
|
+
import MimeNode = require("../mime-node");
|
|
11
|
+
import XOAuth2 = require("../xoauth2");
|
|
12
|
+
|
|
13
|
+
type ms = number;
|
|
14
|
+
|
|
15
|
+
declare namespace SMTPConnection {
|
|
16
|
+
interface Credentials {
|
|
17
|
+
/** the username */
|
|
18
|
+
user: string;
|
|
19
|
+
/** then password */
|
|
20
|
+
pass: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
type OAuth2 = XOAuth2.Options;
|
|
24
|
+
|
|
25
|
+
interface AuthenticationTypeCustom extends Credentials {
|
|
26
|
+
/** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ or ‘custom’ */
|
|
27
|
+
type: "custom" | "Custom" | "CUSTOM";
|
|
28
|
+
method: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
interface AuthenticationTypeLogin extends Credentials {
|
|
32
|
+
/** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ or ‘custom’ */
|
|
33
|
+
type?: "login" | "Login" | "LOGIN" | undefined;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface AuthenticationTypeOAuth2 extends OAuth2 {
|
|
37
|
+
/** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ or ‘custom’ */
|
|
38
|
+
type?: "oauth2" | "OAuth2" | "OAUTH2" | undefined;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
type AuthenticationType = AuthenticationTypeCustom | AuthenticationTypeLogin | AuthenticationTypeOAuth2;
|
|
42
|
+
|
|
43
|
+
interface AuthenticationCredentials {
|
|
44
|
+
/** normal authentication object */
|
|
45
|
+
credentials: Credentials;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
interface AuthenticationOAuth2 {
|
|
49
|
+
/** if set then forces smtp-connection to use XOAuth2 for authentication */
|
|
50
|
+
oauth2: OAuth2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
interface CustomAuthenticationResponse {
|
|
54
|
+
command: string;
|
|
55
|
+
response: string;
|
|
56
|
+
status: number;
|
|
57
|
+
text: string;
|
|
58
|
+
code?: number | undefined;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
interface CustomAuthenticationContext {
|
|
62
|
+
auth: AuthenticationCredentials;
|
|
63
|
+
authMethod: string;
|
|
64
|
+
extensions: string[];
|
|
65
|
+
authMethods: string[];
|
|
66
|
+
maxAllowedSize: number | false;
|
|
67
|
+
sendCommand(cmd: string): Promise<CustomAuthenticationResponse>;
|
|
68
|
+
sendCommand(cmd: string, done: (err: Error | null, data: CustomAuthenticationResponse) => void): void;
|
|
69
|
+
resolve(): unknown;
|
|
70
|
+
reject(err: Error | string): unknown;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
interface CustomAuthenticationHandlers {
|
|
74
|
+
[method: string]: (ctx: CustomAuthenticationContext) => Promise<boolean> | unknown;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
type DSNOption = "NEVER" | "SUCCESS" | "FAILURE" | "DELAY";
|
|
78
|
+
|
|
79
|
+
interface DSNOptions {
|
|
80
|
+
/** return either the full message ‘FULL’ or only headers ‘HDRS’ */
|
|
81
|
+
ret?: "Full" | "HDRS" | undefined;
|
|
82
|
+
/** sender’s ‘envelope identifier’ for tracking */
|
|
83
|
+
envid?: string | undefined;
|
|
84
|
+
/** when to send a DSN. Multiple options are OK - array or comma delimited. NEVER must appear by itself. */
|
|
85
|
+
notify?: DSNOption | DSNOption[] | undefined;
|
|
86
|
+
/** original recipient */
|
|
87
|
+
orcpt?: string | undefined;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface Envelope {
|
|
91
|
+
/** includes an address object or is set to false */
|
|
92
|
+
from: string | false;
|
|
93
|
+
/** the recipient address or an array of addresses */
|
|
94
|
+
to: string | string[];
|
|
95
|
+
/** an optional value of the predicted size of the message in bytes. This value is used if the server supports the SIZE extension (RFC1870) */
|
|
96
|
+
size?: number | undefined;
|
|
97
|
+
/** if true then inform the server that this message might contain bytes outside 7bit ascii range */
|
|
98
|
+
use8BitMime?: boolean | undefined;
|
|
99
|
+
/** the dsn options */
|
|
100
|
+
dsn?: DSNOptions | undefined;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
interface SMTPError extends NodeJS.ErrnoException {
|
|
104
|
+
/** string code identifying the error, for example ‘EAUTH’ is returned when authentication */
|
|
105
|
+
code?: string | undefined;
|
|
106
|
+
/** the last response received from the server (if the error is caused by an error response from the server) */
|
|
107
|
+
response?: string | undefined;
|
|
108
|
+
/** the numeric response code of the response string (if available) */
|
|
109
|
+
responseCode?: number | undefined;
|
|
110
|
+
/** command which provoked an error */
|
|
111
|
+
command?: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface SentMessageInfo {
|
|
115
|
+
/** an array of accepted recipient addresses. Normally this array should contain at least one address except when in LMTP mode. In this case the message itself might have succeeded but all recipients were rejected after sending the message. */
|
|
116
|
+
accepted: string[];
|
|
117
|
+
/** an array of rejected recipient addresses. This array includes both the addresses that were rejected before sending the message and addresses rejected after sending it if using LMTP */
|
|
118
|
+
rejected: string[];
|
|
119
|
+
/** if some recipients were rejected then this property holds an array of error objects for the rejected recipients */
|
|
120
|
+
rejectedErrors?: SMTPError[] | undefined;
|
|
121
|
+
/** the last response received from the server */
|
|
122
|
+
response: string;
|
|
123
|
+
/** how long was envelope prepared */
|
|
124
|
+
envelopeTime: number;
|
|
125
|
+
/** how long was send stream prepared */
|
|
126
|
+
messageTime: number;
|
|
127
|
+
/** how many bytes were streamed */
|
|
128
|
+
messageSize: number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface Options {
|
|
132
|
+
/** the hostname or IP address to connect to (defaults to ‘localhost’) */
|
|
133
|
+
host?: string | undefined;
|
|
134
|
+
/** the port to connect to (defaults to 25 or 465) */
|
|
135
|
+
port?: number | undefined;
|
|
136
|
+
/** defines authentication data */
|
|
137
|
+
auth?: AuthenticationType | undefined;
|
|
138
|
+
/** defines if the connection should use SSL (if true) or not (if false) */
|
|
139
|
+
secure?: boolean | undefined;
|
|
140
|
+
/** indicates that the provided socket has already been upgraded to TLS (if true) */
|
|
141
|
+
secured?: boolean | undefined;
|
|
142
|
+
/** turns off STARTTLS support if true */
|
|
143
|
+
ignoreTLS?: boolean | undefined;
|
|
144
|
+
/** forces the client to use STARTTLS. Returns an error if upgrading the connection is not possible or fails. */
|
|
145
|
+
requireTLS?: boolean | undefined;
|
|
146
|
+
/** tries to use STARTTLS and continues normally if it fails */
|
|
147
|
+
opportunisticTLS?: boolean | undefined;
|
|
148
|
+
/** optional hostname of the client, used for identifying to the server */
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
/** the local interface to bind to for network connections */
|
|
151
|
+
localAddress?: string | undefined;
|
|
152
|
+
/** how many milliseconds to wait for the connection to establish */
|
|
153
|
+
connectionTimeout?: ms | undefined;
|
|
154
|
+
/** how many milliseconds to wait for the greeting after connection is established */
|
|
155
|
+
greetingTimeout?: ms | undefined;
|
|
156
|
+
/** how many milliseconds of inactivity to allow */
|
|
157
|
+
socketTimeout?: ms | undefined;
|
|
158
|
+
/** how many milliseconds to wait for the DNS requests to be resolved */
|
|
159
|
+
dnsTimeout?: ms | undefined;
|
|
160
|
+
/** optional bunyan compatible logger instance. If set to true then logs to console. If value is not set or is false then nothing is logged */
|
|
161
|
+
logger?: shared.Logger | boolean | undefined;
|
|
162
|
+
/** if set to true, then logs SMTP traffic without message content */
|
|
163
|
+
transactionLog?: boolean | undefined;
|
|
164
|
+
/** if set to true, then logs SMTP traffic and message content, otherwise logs only transaction events */
|
|
165
|
+
debug?: boolean | undefined;
|
|
166
|
+
/** defines preferred authentication method, e.g. ‘PLAIN’ */
|
|
167
|
+
authMethod?: string | undefined;
|
|
168
|
+
/** defines additional options to be passed to the socket constructor, e.g. {rejectUnauthorized: true} */
|
|
169
|
+
tls?: tls.ConnectionOptions | undefined;
|
|
170
|
+
/** initialized socket to use instead of creating a new one */
|
|
171
|
+
socket?: net.Socket | undefined;
|
|
172
|
+
/** connected socket to use instead of creating and connecting a new one. If secure option is true, then socket is upgraded from plaintext to ciphertext */
|
|
173
|
+
connection?: net.Socket | undefined;
|
|
174
|
+
customAuth?: CustomAuthenticationHandlers | undefined;
|
|
175
|
+
/** if true, uses LMTP instead of SMTP protocol */
|
|
176
|
+
lmtp?: boolean | undefined;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
declare class SMTPConnection extends EventEmitter {
|
|
181
|
+
options: SMTPConnection.Options;
|
|
182
|
+
|
|
183
|
+
logger: shared.Logger;
|
|
184
|
+
|
|
185
|
+
id: string;
|
|
186
|
+
stage: "init" | "connected";
|
|
187
|
+
|
|
188
|
+
secureConnection: boolean;
|
|
189
|
+
alreadySecured: boolean;
|
|
190
|
+
|
|
191
|
+
port: number;
|
|
192
|
+
host: string;
|
|
193
|
+
|
|
194
|
+
name: string;
|
|
195
|
+
/** Expose version nr, just for the reference */
|
|
196
|
+
version: string;
|
|
197
|
+
|
|
198
|
+
/** If true, then the user is authenticated */
|
|
199
|
+
authenticated: boolean;
|
|
200
|
+
/** If set to true, this instance is no longer active */
|
|
201
|
+
destroyed: boolean;
|
|
202
|
+
/** Defines if the current connection is secure or not. If not, STARTTLS can be used if available */
|
|
203
|
+
secure: boolean;
|
|
204
|
+
|
|
205
|
+
lastServerResponse: string | false;
|
|
206
|
+
|
|
207
|
+
/** The socket connecting to the server */
|
|
208
|
+
_socket: net.Socket;
|
|
209
|
+
|
|
210
|
+
constructor(options?: SMTPConnection.Options);
|
|
211
|
+
|
|
212
|
+
/** Creates a connection to a SMTP server and sets up connection listener */
|
|
213
|
+
connect(callback: (err?: SMTPConnection.SMTPError) => void): void;
|
|
214
|
+
/** Sends QUIT */
|
|
215
|
+
quit(): void;
|
|
216
|
+
/** Closes the connection to the server */
|
|
217
|
+
close(): void;
|
|
218
|
+
/** Authenticate user */
|
|
219
|
+
login(
|
|
220
|
+
auth:
|
|
221
|
+
| SMTPConnection.AuthenticationCredentials
|
|
222
|
+
| SMTPConnection.AuthenticationOAuth2
|
|
223
|
+
| SMTPConnection.Credentials,
|
|
224
|
+
callback: (err?: SMTPConnection.SMTPError) => void,
|
|
225
|
+
): void;
|
|
226
|
+
/** Sends a message */
|
|
227
|
+
send(
|
|
228
|
+
envelope: SMTPConnection.Envelope,
|
|
229
|
+
message: string | Buffer | Readable,
|
|
230
|
+
callback: (err: SMTPConnection.SMTPError | null, info: SMTPConnection.SentMessageInfo) => void,
|
|
231
|
+
): void;
|
|
232
|
+
/** Resets connection state */
|
|
233
|
+
reset(callback: (err?: SMTPConnection.SMTPError) => void): void;
|
|
234
|
+
|
|
235
|
+
addListener(event: "connect" | "end", listener: () => void): this;
|
|
236
|
+
addListener(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
237
|
+
|
|
238
|
+
emit(event: "connect" | "end"): boolean;
|
|
239
|
+
emit(event: "error", error: Error): boolean;
|
|
240
|
+
|
|
241
|
+
listenerCount(event: "connect" | "end" | "error"): number;
|
|
242
|
+
|
|
243
|
+
listeners(event: "connect" | "end"): Array<() => void>;
|
|
244
|
+
listeners(event: "error"): Array<(err: SMTPConnection.SMTPError) => void>;
|
|
245
|
+
|
|
246
|
+
off(event: "connect" | "end", listener: () => void): this;
|
|
247
|
+
off(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
248
|
+
|
|
249
|
+
on(event: "connect" | "end", listener: () => void): this;
|
|
250
|
+
on(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
251
|
+
|
|
252
|
+
once(event: "connect" | "end", listener: () => void): this;
|
|
253
|
+
once(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
254
|
+
|
|
255
|
+
prependListener(event: "connect" | "end", listener: () => void): this;
|
|
256
|
+
prependListener(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
257
|
+
|
|
258
|
+
prependOnceListener(event: "connect" | "end", listener: () => void): this;
|
|
259
|
+
prependOnceListener(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
260
|
+
|
|
261
|
+
rawListeners(event: "connect" | "end"): Array<() => void>;
|
|
262
|
+
rawListeners(event: "error"): Array<(err: SMTPConnection.SMTPError) => void>;
|
|
263
|
+
|
|
264
|
+
removeAllListener(event: "connect" | "end" | "error"): this;
|
|
265
|
+
|
|
266
|
+
removeListener(event: "connect" | "end", listener: () => void): this;
|
|
267
|
+
removeListener(event: "error", listener: (err: SMTPConnection.SMTPError) => void): this;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export = SMTPConnection;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
import { EventEmitter } from "events";
|
|
4
|
+
|
|
5
|
+
import { Transport, TransportOptions } from "../..";
|
|
6
|
+
import * as shared from "../shared";
|
|
7
|
+
|
|
8
|
+
import Mail = require("../mailer");
|
|
9
|
+
import MailMessage = require("../mailer/mail-message");
|
|
10
|
+
import MimeNode = require("../mime-node");
|
|
11
|
+
import SMTPConnection = require("../smtp-connection");
|
|
12
|
+
|
|
13
|
+
declare namespace SMTPPool {
|
|
14
|
+
interface MailOptions extends Mail.Options {
|
|
15
|
+
auth?: SMTPConnection.AuthenticationType | undefined;
|
|
16
|
+
dsn?: SMTPConnection.DSNOptions | undefined;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface Options extends MailOptions, TransportOptions, SMTPConnection.Options {
|
|
20
|
+
/** set to true to use pooled connections (defaults to false) instead of creating a new connection for every email */
|
|
21
|
+
pool: true;
|
|
22
|
+
service?: string | undefined;
|
|
23
|
+
getSocket?(options: Options, callback: (err: Error | null, socketOptions: any) => void): void; // TODO http.ClientRequest?
|
|
24
|
+
url?: string | undefined;
|
|
25
|
+
/** the count of maximum simultaneous connections to make against the SMTP server (defaults to 5) */
|
|
26
|
+
maxConnections?: number | undefined;
|
|
27
|
+
/** limits the message count to be sent using a single connection (defaults to 100). After maxMessages is reached the connection is dropped and a new one is created for the following messages */
|
|
28
|
+
maxMessages?: number | undefined;
|
|
29
|
+
/** defines the time measuring period in milliseconds (defaults to 1000, ie. to 1 second) for rate limiting */
|
|
30
|
+
rateDelta?: number | undefined;
|
|
31
|
+
/** limits the message count to be sent in rateDelta time. Once rateLimit is reached, sending is paused until the end of the measuring period. This limit is shared between connections, so if one connection uses up the limit, then other connections are paused as well. If rateLimit is not set then sending rate is not limited */
|
|
32
|
+
rateLimit?: number | undefined;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
interface SentMessageInfo extends SMTPConnection.SentMessageInfo {
|
|
36
|
+
/** includes the envelope object for the message */
|
|
37
|
+
envelope: MimeNode.Envelope;
|
|
38
|
+
/** most transports should return the final Message-Id value used with this property */
|
|
39
|
+
messageId: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates a SMTP pool transport object for Nodemailer
|
|
45
|
+
*/
|
|
46
|
+
declare class SMTPPool extends EventEmitter implements Transport<SMTPPool.SentMessageInfo> {
|
|
47
|
+
options: SMTPPool.Options;
|
|
48
|
+
|
|
49
|
+
mailer: Mail<SMTPPool.SentMessageInfo>;
|
|
50
|
+
logger: shared.Logger;
|
|
51
|
+
|
|
52
|
+
name: string;
|
|
53
|
+
version: string;
|
|
54
|
+
|
|
55
|
+
idling: boolean;
|
|
56
|
+
|
|
57
|
+
constructor(options?: SMTPPool.Options | string);
|
|
58
|
+
|
|
59
|
+
/** Placeholder function for creating proxy sockets. This method immediatelly returns without a socket */
|
|
60
|
+
getSocket(options: SMTPPool.Options, callback: (err: Error | null, socketOptions: any) => void): void;
|
|
61
|
+
|
|
62
|
+
/** Sends an e-mail using the selected settings */
|
|
63
|
+
send(
|
|
64
|
+
mail: MailMessage<SMTPPool.SentMessageInfo>,
|
|
65
|
+
callback: (err: Error | null, info: SMTPPool.SentMessageInfo) => void,
|
|
66
|
+
): void;
|
|
67
|
+
|
|
68
|
+
/** Closes all connections in the pool. If there is a message being sent, the connection is closed later */
|
|
69
|
+
close(): void;
|
|
70
|
+
|
|
71
|
+
/** Returns true if there are free slots in the queue */
|
|
72
|
+
isIdle(): boolean;
|
|
73
|
+
|
|
74
|
+
/** Verifies SMTP configuration */
|
|
75
|
+
verify(callback: (err: Error | null, success: true) => void): void;
|
|
76
|
+
verify(): Promise<true>;
|
|
77
|
+
|
|
78
|
+
addListener(event: "idle", listener: () => void): this;
|
|
79
|
+
|
|
80
|
+
emit(event: "idle"): boolean;
|
|
81
|
+
|
|
82
|
+
on(event: "idle", listener: () => void): this;
|
|
83
|
+
|
|
84
|
+
once(event: "idle", listener: () => void): this;
|
|
85
|
+
|
|
86
|
+
prependListener(event: "idle", listener: () => void): this;
|
|
87
|
+
|
|
88
|
+
prependOnceListener(event: "idle", listener: () => void): this;
|
|
89
|
+
|
|
90
|
+
listeners(event: "idle"): Array<() => void>;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export = SMTPPool;
|