@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.
Files changed (519) hide show
  1. package/.tswalk.json +3366 -0
  2. package/README.md +160 -0
  3. package/bin/mailx.js +58 -0
  4. package/client/app.js +431 -0
  5. package/client/components/folder-tree.js +286 -0
  6. package/client/components/message-list.js +230 -0
  7. package/client/components/message-viewer.js +161 -0
  8. package/client/compose/compose.css +197 -0
  9. package/client/compose/compose.html +45 -0
  10. package/client/compose/compose.js +335 -0
  11. package/client/favicon.svg +11 -0
  12. package/client/index.html +100 -0
  13. package/client/lib/api-client.js +67 -0
  14. package/client/package.json +9 -0
  15. package/client/styles/components.css +361 -0
  16. package/client/styles/layout.css +69 -0
  17. package/launch.ps1 +20 -0
  18. package/launcher/Cargo.lock +3167 -0
  19. package/launcher/Cargo.toml +13 -0
  20. package/launcher/build.cmd +4 -0
  21. package/launcher/build.rs +8 -0
  22. package/launcher/mailx.ico +0 -0
  23. package/launcher/release.cmd +4 -0
  24. package/launcher/src/main.rs +371 -0
  25. package/mailx.cmd +2 -0
  26. package/mailx.db +0 -0
  27. package/mailx.db-shm +0 -0
  28. package/mailx.db-wal +0 -0
  29. package/mailx.json +9 -0
  30. package/package.json +51 -0
  31. package/packages/mailx-api/index.d.ts +9 -0
  32. package/packages/mailx-api/index.js +375 -0
  33. package/packages/mailx-api/node_modules/nodemailer/.ncurc.js +9 -0
  34. package/packages/mailx-api/node_modules/nodemailer/.prettierignore +8 -0
  35. package/packages/mailx-api/node_modules/nodemailer/.prettierrc +12 -0
  36. package/packages/mailx-api/node_modules/nodemailer/.prettierrc.js +10 -0
  37. package/packages/mailx-api/node_modules/nodemailer/.release-please-config.json +9 -0
  38. package/packages/mailx-api/node_modules/nodemailer/LICENSE +16 -0
  39. package/packages/mailx-api/node_modules/nodemailer/README.md +86 -0
  40. package/packages/mailx-api/node_modules/nodemailer/SECURITY.txt +22 -0
  41. package/packages/mailx-api/node_modules/nodemailer/eslint.config.js +88 -0
  42. package/packages/mailx-api/node_modules/nodemailer/lib/addressparser/index.js +383 -0
  43. package/packages/mailx-api/node_modules/nodemailer/lib/base64/index.js +139 -0
  44. package/packages/mailx-api/node_modules/nodemailer/lib/dkim/index.js +253 -0
  45. package/packages/mailx-api/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  46. package/packages/mailx-api/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  47. package/packages/mailx-api/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  48. package/packages/mailx-api/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  49. package/packages/mailx-api/node_modules/nodemailer/lib/fetch/index.js +280 -0
  50. package/packages/mailx-api/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  51. package/packages/mailx-api/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
  52. package/packages/mailx-api/node_modules/nodemailer/lib/mailer/index.js +441 -0
  53. package/packages/mailx-api/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
  54. package/packages/mailx-api/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
  55. package/packages/mailx-api/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
  56. package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
  57. package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  58. package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  59. package/packages/mailx-api/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  60. package/packages/mailx-api/node_modules/nodemailer/lib/nodemailer.js +157 -0
  61. package/packages/mailx-api/node_modules/nodemailer/lib/punycode/index.js +460 -0
  62. package/packages/mailx-api/node_modules/nodemailer/lib/qp/index.js +227 -0
  63. package/packages/mailx-api/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  64. package/packages/mailx-api/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
  65. package/packages/mailx-api/node_modules/nodemailer/lib/shared/index.js +754 -0
  66. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  67. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  68. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
  69. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
  70. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
  71. package/packages/mailx-api/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
  72. package/packages/mailx-api/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  73. package/packages/mailx-api/node_modules/nodemailer/lib/well-known/index.js +47 -0
  74. package/packages/mailx-api/node_modules/nodemailer/lib/well-known/services.json +611 -0
  75. package/packages/mailx-api/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
  76. package/packages/mailx-api/node_modules/nodemailer/package.json +47 -0
  77. package/packages/mailx-api/package.json +24 -0
  78. package/packages/mailx-api/tsconfig.tsbuildinfo +1 -0
  79. package/packages/mailx-compose/index.d.ts +21 -0
  80. package/packages/mailx-compose/index.js +61 -0
  81. package/packages/mailx-compose/package.json +14 -0
  82. package/packages/mailx-imap/index.d.ts +105 -0
  83. package/packages/mailx-imap/index.js +1026 -0
  84. package/packages/mailx-imap/node_modules/nodemailer/.ncurc.js +9 -0
  85. package/packages/mailx-imap/node_modules/nodemailer/.prettierignore +8 -0
  86. package/packages/mailx-imap/node_modules/nodemailer/.prettierrc +12 -0
  87. package/packages/mailx-imap/node_modules/nodemailer/.prettierrc.js +10 -0
  88. package/packages/mailx-imap/node_modules/nodemailer/.release-please-config.json +9 -0
  89. package/packages/mailx-imap/node_modules/nodemailer/LICENSE +16 -0
  90. package/packages/mailx-imap/node_modules/nodemailer/README.md +86 -0
  91. package/packages/mailx-imap/node_modules/nodemailer/SECURITY.txt +22 -0
  92. package/packages/mailx-imap/node_modules/nodemailer/eslint.config.js +88 -0
  93. package/packages/mailx-imap/node_modules/nodemailer/lib/addressparser/index.js +383 -0
  94. package/packages/mailx-imap/node_modules/nodemailer/lib/base64/index.js +139 -0
  95. package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/index.js +253 -0
  96. package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  97. package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  98. package/packages/mailx-imap/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  99. package/packages/mailx-imap/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  100. package/packages/mailx-imap/node_modules/nodemailer/lib/fetch/index.js +280 -0
  101. package/packages/mailx-imap/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  102. package/packages/mailx-imap/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
  103. package/packages/mailx-imap/node_modules/nodemailer/lib/mailer/index.js +441 -0
  104. package/packages/mailx-imap/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
  105. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
  106. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
  107. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
  108. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  109. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  110. package/packages/mailx-imap/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  111. package/packages/mailx-imap/node_modules/nodemailer/lib/nodemailer.js +157 -0
  112. package/packages/mailx-imap/node_modules/nodemailer/lib/punycode/index.js +460 -0
  113. package/packages/mailx-imap/node_modules/nodemailer/lib/qp/index.js +227 -0
  114. package/packages/mailx-imap/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  115. package/packages/mailx-imap/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
  116. package/packages/mailx-imap/node_modules/nodemailer/lib/shared/index.js +754 -0
  117. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  118. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  119. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
  120. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
  121. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
  122. package/packages/mailx-imap/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
  123. package/packages/mailx-imap/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  124. package/packages/mailx-imap/node_modules/nodemailer/lib/well-known/index.js +47 -0
  125. package/packages/mailx-imap/node_modules/nodemailer/lib/well-known/services.json +611 -0
  126. package/packages/mailx-imap/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
  127. package/packages/mailx-imap/node_modules/nodemailer/package.json +47 -0
  128. package/packages/mailx-imap/package.json +19 -0
  129. package/packages/mailx-imap/tsconfig.tsbuildinfo +1 -0
  130. package/packages/mailx-send/README.md +217 -0
  131. package/packages/mailx-send/cli-queue.d.ts +11 -0
  132. package/packages/mailx-send/cli-queue.js +59 -0
  133. package/packages/mailx-send/cli-send.d.ts +17 -0
  134. package/packages/mailx-send/cli-send.js +75 -0
  135. package/packages/mailx-send/cli.d.ts +22 -0
  136. package/packages/mailx-send/cli.js +115 -0
  137. package/packages/mailx-send/index.d.ts +77 -0
  138. package/packages/mailx-send/index.js +264 -0
  139. package/packages/mailx-send/mailsend/README.md +133 -0
  140. package/packages/mailx-send/mailsend/cli.d.ts +12 -0
  141. package/packages/mailx-send/mailsend/cli.js +70 -0
  142. package/packages/mailx-send/mailsend/index.d.ts +77 -0
  143. package/packages/mailx-send/mailsend/index.js +264 -0
  144. package/packages/mailx-send/mailsend/node_modules/.package-lock.json +49 -0
  145. package/packages/mailx-send/mailsend/node_modules/@types/node/LICENSE +21 -0
  146. package/packages/mailx-send/mailsend/node_modules/@types/node/README.md +15 -0
  147. package/packages/mailx-send/mailsend/node_modules/@types/node/assert/strict.d.ts +111 -0
  148. package/packages/mailx-send/mailsend/node_modules/@types/node/assert.d.ts +1078 -0
  149. package/packages/mailx-send/mailsend/node_modules/@types/node/async_hooks.d.ts +603 -0
  150. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  151. package/packages/mailx-send/mailsend/node_modules/@types/node/buffer.d.ts +1934 -0
  152. package/packages/mailx-send/mailsend/node_modules/@types/node/child_process.d.ts +1476 -0
  153. package/packages/mailx-send/mailsend/node_modules/@types/node/cluster.d.ts +578 -0
  154. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  155. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/index.d.ts +9 -0
  156. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  157. package/packages/mailx-send/mailsend/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  158. package/packages/mailx-send/mailsend/node_modules/@types/node/console.d.ts +452 -0
  159. package/packages/mailx-send/mailsend/node_modules/@types/node/constants.d.ts +21 -0
  160. package/packages/mailx-send/mailsend/node_modules/@types/node/crypto.d.ts +4545 -0
  161. package/packages/mailx-send/mailsend/node_modules/@types/node/dgram.d.ts +600 -0
  162. package/packages/mailx-send/mailsend/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  163. package/packages/mailx-send/mailsend/node_modules/@types/node/dns/promises.d.ts +503 -0
  164. package/packages/mailx-send/mailsend/node_modules/@types/node/dns.d.ts +923 -0
  165. package/packages/mailx-send/mailsend/node_modules/@types/node/domain.d.ts +170 -0
  166. package/packages/mailx-send/mailsend/node_modules/@types/node/events.d.ts +976 -0
  167. package/packages/mailx-send/mailsend/node_modules/@types/node/fs/promises.d.ts +1295 -0
  168. package/packages/mailx-send/mailsend/node_modules/@types/node/fs.d.ts +4461 -0
  169. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.d.ts +172 -0
  170. package/packages/mailx-send/mailsend/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  171. package/packages/mailx-send/mailsend/node_modules/@types/node/http.d.ts +2089 -0
  172. package/packages/mailx-send/mailsend/node_modules/@types/node/http2.d.ts +2644 -0
  173. package/packages/mailx-send/mailsend/node_modules/@types/node/https.d.ts +579 -0
  174. package/packages/mailx-send/mailsend/node_modules/@types/node/index.d.ts +97 -0
  175. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.d.ts +253 -0
  176. package/packages/mailx-send/mailsend/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  177. package/packages/mailx-send/mailsend/node_modules/@types/node/module.d.ts +891 -0
  178. package/packages/mailx-send/mailsend/node_modules/@types/node/net.d.ts +1057 -0
  179. package/packages/mailx-send/mailsend/node_modules/@types/node/os.d.ts +506 -0
  180. package/packages/mailx-send/mailsend/node_modules/@types/node/package.json +145 -0
  181. package/packages/mailx-send/mailsend/node_modules/@types/node/path.d.ts +200 -0
  182. package/packages/mailx-send/mailsend/node_modules/@types/node/perf_hooks.d.ts +968 -0
  183. package/packages/mailx-send/mailsend/node_modules/@types/node/process.d.ts +2084 -0
  184. package/packages/mailx-send/mailsend/node_modules/@types/node/punycode.d.ts +117 -0
  185. package/packages/mailx-send/mailsend/node_modules/@types/node/querystring.d.ts +152 -0
  186. package/packages/mailx-send/mailsend/node_modules/@types/node/readline/promises.d.ts +161 -0
  187. package/packages/mailx-send/mailsend/node_modules/@types/node/readline.d.ts +594 -0
  188. package/packages/mailx-send/mailsend/node_modules/@types/node/repl.d.ts +428 -0
  189. package/packages/mailx-send/mailsend/node_modules/@types/node/sea.d.ts +153 -0
  190. package/packages/mailx-send/mailsend/node_modules/@types/node/sqlite.d.ts +721 -0
  191. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/consumers.d.ts +38 -0
  192. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/promises.d.ts +90 -0
  193. package/packages/mailx-send/mailsend/node_modules/@types/node/stream/web.d.ts +622 -0
  194. package/packages/mailx-send/mailsend/node_modules/@types/node/stream.d.ts +1664 -0
  195. package/packages/mailx-send/mailsend/node_modules/@types/node/string_decoder.d.ts +67 -0
  196. package/packages/mailx-send/mailsend/node_modules/@types/node/test.d.ts +2163 -0
  197. package/packages/mailx-send/mailsend/node_modules/@types/node/timers/promises.d.ts +108 -0
  198. package/packages/mailx-send/mailsend/node_modules/@types/node/timers.d.ts +287 -0
  199. package/packages/mailx-send/mailsend/node_modules/@types/node/tls.d.ts +1319 -0
  200. package/packages/mailx-send/mailsend/node_modules/@types/node/trace_events.d.ts +197 -0
  201. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  202. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  203. package/packages/mailx-send/mailsend/node_modules/@types/node/ts5.6/index.d.ts +97 -0
  204. package/packages/mailx-send/mailsend/node_modules/@types/node/tty.d.ts +208 -0
  205. package/packages/mailx-send/mailsend/node_modules/@types/node/url.d.ts +984 -0
  206. package/packages/mailx-send/mailsend/node_modules/@types/node/util.d.ts +2606 -0
  207. package/packages/mailx-send/mailsend/node_modules/@types/node/v8.d.ts +920 -0
  208. package/packages/mailx-send/mailsend/node_modules/@types/node/vm.d.ts +1000 -0
  209. package/packages/mailx-send/mailsend/node_modules/@types/node/wasi.d.ts +181 -0
  210. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  211. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  212. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/events.d.ts +97 -0
  213. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  214. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  215. package/packages/mailx-send/mailsend/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  216. package/packages/mailx-send/mailsend/node_modules/@types/node/worker_threads.d.ts +784 -0
  217. package/packages/mailx-send/mailsend/node_modules/@types/node/zlib.d.ts +747 -0
  218. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/LICENSE +21 -0
  219. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/README.md +15 -0
  220. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/index.d.ts +82 -0
  221. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/addressparser/index.d.ts +31 -0
  222. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/base64/index.d.ts +22 -0
  223. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/index.d.ts +45 -0
  224. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/message-parser.d.ts +75 -0
  225. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/relaxed-body.d.ts +75 -0
  226. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/dkim/sign.d.ts +21 -0
  227. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/cookies.d.ts +54 -0
  228. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/fetch/index.d.ts +38 -0
  229. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/json-transport/index.d.ts +53 -0
  230. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mail-composer/index.d.ts +25 -0
  231. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/index.d.ts +283 -0
  232. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mailer/mail-message.d.ts +32 -0
  233. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/index.d.ts +87 -0
  234. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-funcs/mime-types.d.ts +2 -0
  235. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/index.d.ts +224 -0
  236. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/mime-node/last-newline.d.ts +9 -0
  237. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/qp/index.d.ts +23 -0
  238. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/index.d.ts +53 -0
  239. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-unix.d.ts +7 -0
  240. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/sendmail-transport/le-windows.d.ts +7 -0
  241. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/ses-transport/index.d.ts +146 -0
  242. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/shared/index.d.ts +58 -0
  243. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/data-stream.d.ts +11 -0
  244. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/http-proxy-client.d.ts +16 -0
  245. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-connection/index.d.ts +270 -0
  246. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/index.d.ts +93 -0
  247. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-pool/pool-resource.d.ts +66 -0
  248. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/smtp-transport/index.d.ts +115 -0
  249. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/stream-transport/index.d.ts +59 -0
  250. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/well-known/index.d.ts +6 -0
  251. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/lib/xoauth2/index.d.ts +114 -0
  252. package/packages/mailx-send/mailsend/node_modules/@types/nodemailer/package.json +38 -0
  253. package/packages/mailx-send/mailsend/node_modules/nodemailer/.ncurc.js +9 -0
  254. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierignore +8 -0
  255. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc +12 -0
  256. package/packages/mailx-send/mailsend/node_modules/nodemailer/.prettierrc.js +10 -0
  257. package/packages/mailx-send/mailsend/node_modules/nodemailer/.release-please-config.json +9 -0
  258. package/packages/mailx-send/mailsend/node_modules/nodemailer/LICENSE +16 -0
  259. package/packages/mailx-send/mailsend/node_modules/nodemailer/README.md +86 -0
  260. package/packages/mailx-send/mailsend/node_modules/nodemailer/SECURITY.txt +22 -0
  261. package/packages/mailx-send/mailsend/node_modules/nodemailer/eslint.config.js +88 -0
  262. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/addressparser/index.js +383 -0
  263. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/base64/index.js +139 -0
  264. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/index.js +253 -0
  265. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  266. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  267. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  268. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  269. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/fetch/index.js +280 -0
  270. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  271. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
  272. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/index.js +441 -0
  273. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
  274. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
  275. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
  276. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
  277. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  278. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  279. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  280. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/nodemailer.js +157 -0
  281. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/punycode/index.js +460 -0
  282. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/qp/index.js +227 -0
  283. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  284. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
  285. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/shared/index.js +754 -0
  286. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  287. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  288. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
  289. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
  290. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
  291. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
  292. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  293. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/index.js +47 -0
  294. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/well-known/services.json +611 -0
  295. package/packages/mailx-send/mailsend/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
  296. package/packages/mailx-send/mailsend/node_modules/nodemailer/package.json +47 -0
  297. package/packages/mailx-send/mailsend/node_modules/undici-types/LICENSE +21 -0
  298. package/packages/mailx-send/mailsend/node_modules/undici-types/README.md +6 -0
  299. package/packages/mailx-send/mailsend/node_modules/undici-types/agent.d.ts +31 -0
  300. package/packages/mailx-send/mailsend/node_modules/undici-types/api.d.ts +43 -0
  301. package/packages/mailx-send/mailsend/node_modules/undici-types/balanced-pool.d.ts +29 -0
  302. package/packages/mailx-send/mailsend/node_modules/undici-types/cache.d.ts +36 -0
  303. package/packages/mailx-send/mailsend/node_modules/undici-types/client.d.ts +108 -0
  304. package/packages/mailx-send/mailsend/node_modules/undici-types/connector.d.ts +34 -0
  305. package/packages/mailx-send/mailsend/node_modules/undici-types/content-type.d.ts +21 -0
  306. package/packages/mailx-send/mailsend/node_modules/undici-types/cookies.d.ts +28 -0
  307. package/packages/mailx-send/mailsend/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  308. package/packages/mailx-send/mailsend/node_modules/undici-types/dispatcher.d.ts +256 -0
  309. package/packages/mailx-send/mailsend/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  310. package/packages/mailx-send/mailsend/node_modules/undici-types/errors.d.ts +149 -0
  311. package/packages/mailx-send/mailsend/node_modules/undici-types/eventsource.d.ts +61 -0
  312. package/packages/mailx-send/mailsend/node_modules/undici-types/fetch.d.ts +209 -0
  313. package/packages/mailx-send/mailsend/node_modules/undici-types/file.d.ts +39 -0
  314. package/packages/mailx-send/mailsend/node_modules/undici-types/filereader.d.ts +54 -0
  315. package/packages/mailx-send/mailsend/node_modules/undici-types/formdata.d.ts +108 -0
  316. package/packages/mailx-send/mailsend/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  317. package/packages/mailx-send/mailsend/node_modules/undici-types/global-origin.d.ts +7 -0
  318. package/packages/mailx-send/mailsend/node_modules/undici-types/handlers.d.ts +15 -0
  319. package/packages/mailx-send/mailsend/node_modules/undici-types/header.d.ts +4 -0
  320. package/packages/mailx-send/mailsend/node_modules/undici-types/index.d.ts +71 -0
  321. package/packages/mailx-send/mailsend/node_modules/undici-types/interceptors.d.ts +17 -0
  322. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-agent.d.ts +50 -0
  323. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-client.d.ts +25 -0
  324. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-errors.d.ts +12 -0
  325. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  326. package/packages/mailx-send/mailsend/node_modules/undici-types/mock-pool.d.ts +25 -0
  327. package/packages/mailx-send/mailsend/node_modules/undici-types/package.json +55 -0
  328. package/packages/mailx-send/mailsend/node_modules/undici-types/patch.d.ts +33 -0
  329. package/packages/mailx-send/mailsend/node_modules/undici-types/pool-stats.d.ts +19 -0
  330. package/packages/mailx-send/mailsend/node_modules/undici-types/pool.d.ts +39 -0
  331. package/packages/mailx-send/mailsend/node_modules/undici-types/proxy-agent.d.ts +28 -0
  332. package/packages/mailx-send/mailsend/node_modules/undici-types/readable.d.ts +65 -0
  333. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-agent.d.ts +8 -0
  334. package/packages/mailx-send/mailsend/node_modules/undici-types/retry-handler.d.ts +116 -0
  335. package/packages/mailx-send/mailsend/node_modules/undici-types/util.d.ts +18 -0
  336. package/packages/mailx-send/mailsend/node_modules/undici-types/webidl.d.ts +228 -0
  337. package/packages/mailx-send/mailsend/node_modules/undici-types/websocket.d.ts +150 -0
  338. package/packages/mailx-send/mailsend/package.json +26 -0
  339. package/packages/mailx-send/node_modules/.package-lock.json +49 -0
  340. package/packages/mailx-send/node_modules/@types/node/LICENSE +21 -0
  341. package/packages/mailx-send/node_modules/@types/node/README.md +15 -0
  342. package/packages/mailx-send/node_modules/@types/node/assert/strict.d.ts +111 -0
  343. package/packages/mailx-send/node_modules/@types/node/assert.d.ts +1078 -0
  344. package/packages/mailx-send/node_modules/@types/node/async_hooks.d.ts +603 -0
  345. package/packages/mailx-send/node_modules/@types/node/buffer.buffer.d.ts +472 -0
  346. package/packages/mailx-send/node_modules/@types/node/buffer.d.ts +1934 -0
  347. package/packages/mailx-send/node_modules/@types/node/child_process.d.ts +1476 -0
  348. package/packages/mailx-send/node_modules/@types/node/cluster.d.ts +578 -0
  349. package/packages/mailx-send/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
  350. package/packages/mailx-send/node_modules/@types/node/compatibility/index.d.ts +9 -0
  351. package/packages/mailx-send/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
  352. package/packages/mailx-send/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
  353. package/packages/mailx-send/node_modules/@types/node/console.d.ts +452 -0
  354. package/packages/mailx-send/node_modules/@types/node/constants.d.ts +21 -0
  355. package/packages/mailx-send/node_modules/@types/node/crypto.d.ts +4545 -0
  356. package/packages/mailx-send/node_modules/@types/node/dgram.d.ts +600 -0
  357. package/packages/mailx-send/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
  358. package/packages/mailx-send/node_modules/@types/node/dns/promises.d.ts +503 -0
  359. package/packages/mailx-send/node_modules/@types/node/dns.d.ts +923 -0
  360. package/packages/mailx-send/node_modules/@types/node/domain.d.ts +170 -0
  361. package/packages/mailx-send/node_modules/@types/node/events.d.ts +976 -0
  362. package/packages/mailx-send/node_modules/@types/node/fs/promises.d.ts +1295 -0
  363. package/packages/mailx-send/node_modules/@types/node/fs.d.ts +4461 -0
  364. package/packages/mailx-send/node_modules/@types/node/globals.d.ts +172 -0
  365. package/packages/mailx-send/node_modules/@types/node/globals.typedarray.d.ts +38 -0
  366. package/packages/mailx-send/node_modules/@types/node/http.d.ts +2089 -0
  367. package/packages/mailx-send/node_modules/@types/node/http2.d.ts +2644 -0
  368. package/packages/mailx-send/node_modules/@types/node/https.d.ts +579 -0
  369. package/packages/mailx-send/node_modules/@types/node/index.d.ts +97 -0
  370. package/packages/mailx-send/node_modules/@types/node/inspector.d.ts +253 -0
  371. package/packages/mailx-send/node_modules/@types/node/inspector.generated.d.ts +4052 -0
  372. package/packages/mailx-send/node_modules/@types/node/module.d.ts +891 -0
  373. package/packages/mailx-send/node_modules/@types/node/net.d.ts +1057 -0
  374. package/packages/mailx-send/node_modules/@types/node/os.d.ts +506 -0
  375. package/packages/mailx-send/node_modules/@types/node/package.json +145 -0
  376. package/packages/mailx-send/node_modules/@types/node/path.d.ts +200 -0
  377. package/packages/mailx-send/node_modules/@types/node/perf_hooks.d.ts +968 -0
  378. package/packages/mailx-send/node_modules/@types/node/process.d.ts +2084 -0
  379. package/packages/mailx-send/node_modules/@types/node/punycode.d.ts +117 -0
  380. package/packages/mailx-send/node_modules/@types/node/querystring.d.ts +152 -0
  381. package/packages/mailx-send/node_modules/@types/node/readline/promises.d.ts +161 -0
  382. package/packages/mailx-send/node_modules/@types/node/readline.d.ts +594 -0
  383. package/packages/mailx-send/node_modules/@types/node/repl.d.ts +428 -0
  384. package/packages/mailx-send/node_modules/@types/node/sea.d.ts +153 -0
  385. package/packages/mailx-send/node_modules/@types/node/sqlite.d.ts +721 -0
  386. package/packages/mailx-send/node_modules/@types/node/stream/consumers.d.ts +38 -0
  387. package/packages/mailx-send/node_modules/@types/node/stream/promises.d.ts +90 -0
  388. package/packages/mailx-send/node_modules/@types/node/stream/web.d.ts +622 -0
  389. package/packages/mailx-send/node_modules/@types/node/stream.d.ts +1664 -0
  390. package/packages/mailx-send/node_modules/@types/node/string_decoder.d.ts +67 -0
  391. package/packages/mailx-send/node_modules/@types/node/test.d.ts +2163 -0
  392. package/packages/mailx-send/node_modules/@types/node/timers/promises.d.ts +108 -0
  393. package/packages/mailx-send/node_modules/@types/node/timers.d.ts +287 -0
  394. package/packages/mailx-send/node_modules/@types/node/tls.d.ts +1319 -0
  395. package/packages/mailx-send/node_modules/@types/node/trace_events.d.ts +197 -0
  396. package/packages/mailx-send/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
  397. package/packages/mailx-send/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
  398. package/packages/mailx-send/node_modules/@types/node/ts5.6/index.d.ts +97 -0
  399. package/packages/mailx-send/node_modules/@types/node/tty.d.ts +208 -0
  400. package/packages/mailx-send/node_modules/@types/node/url.d.ts +984 -0
  401. package/packages/mailx-send/node_modules/@types/node/util.d.ts +2606 -0
  402. package/packages/mailx-send/node_modules/@types/node/v8.d.ts +920 -0
  403. package/packages/mailx-send/node_modules/@types/node/vm.d.ts +1000 -0
  404. package/packages/mailx-send/node_modules/@types/node/wasi.d.ts +181 -0
  405. package/packages/mailx-send/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
  406. package/packages/mailx-send/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
  407. package/packages/mailx-send/node_modules/@types/node/web-globals/events.d.ts +97 -0
  408. package/packages/mailx-send/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
  409. package/packages/mailx-send/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
  410. package/packages/mailx-send/node_modules/@types/node/web-globals/storage.d.ts +24 -0
  411. package/packages/mailx-send/node_modules/@types/node/worker_threads.d.ts +784 -0
  412. package/packages/mailx-send/node_modules/@types/node/zlib.d.ts +747 -0
  413. package/packages/mailx-send/node_modules/nodemailer/.ncurc.js +9 -0
  414. package/packages/mailx-send/node_modules/nodemailer/.prettierignore +8 -0
  415. package/packages/mailx-send/node_modules/nodemailer/.prettierrc +12 -0
  416. package/packages/mailx-send/node_modules/nodemailer/.prettierrc.js +10 -0
  417. package/packages/mailx-send/node_modules/nodemailer/.release-please-config.json +9 -0
  418. package/packages/mailx-send/node_modules/nodemailer/LICENSE +16 -0
  419. package/packages/mailx-send/node_modules/nodemailer/README.md +86 -0
  420. package/packages/mailx-send/node_modules/nodemailer/SECURITY.txt +22 -0
  421. package/packages/mailx-send/node_modules/nodemailer/eslint.config.js +88 -0
  422. package/packages/mailx-send/node_modules/nodemailer/lib/addressparser/index.js +383 -0
  423. package/packages/mailx-send/node_modules/nodemailer/lib/base64/index.js +139 -0
  424. package/packages/mailx-send/node_modules/nodemailer/lib/dkim/index.js +253 -0
  425. package/packages/mailx-send/node_modules/nodemailer/lib/dkim/message-parser.js +155 -0
  426. package/packages/mailx-send/node_modules/nodemailer/lib/dkim/relaxed-body.js +154 -0
  427. package/packages/mailx-send/node_modules/nodemailer/lib/dkim/sign.js +117 -0
  428. package/packages/mailx-send/node_modules/nodemailer/lib/fetch/cookies.js +281 -0
  429. package/packages/mailx-send/node_modules/nodemailer/lib/fetch/index.js +280 -0
  430. package/packages/mailx-send/node_modules/nodemailer/lib/json-transport/index.js +82 -0
  431. package/packages/mailx-send/node_modules/nodemailer/lib/mail-composer/index.js +629 -0
  432. package/packages/mailx-send/node_modules/nodemailer/lib/mailer/index.js +441 -0
  433. package/packages/mailx-send/node_modules/nodemailer/lib/mailer/mail-message.js +316 -0
  434. package/packages/mailx-send/node_modules/nodemailer/lib/mime-funcs/index.js +625 -0
  435. package/packages/mailx-send/node_modules/nodemailer/lib/mime-funcs/mime-types.js +2113 -0
  436. package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/index.js +1316 -0
  437. package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/last-newline.js +33 -0
  438. package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/le-unix.js +43 -0
  439. package/packages/mailx-send/node_modules/nodemailer/lib/mime-node/le-windows.js +52 -0
  440. package/packages/mailx-send/node_modules/nodemailer/lib/nodemailer.js +157 -0
  441. package/packages/mailx-send/node_modules/nodemailer/lib/punycode/index.js +460 -0
  442. package/packages/mailx-send/node_modules/nodemailer/lib/qp/index.js +227 -0
  443. package/packages/mailx-send/node_modules/nodemailer/lib/sendmail-transport/index.js +210 -0
  444. package/packages/mailx-send/node_modules/nodemailer/lib/ses-transport/index.js +234 -0
  445. package/packages/mailx-send/node_modules/nodemailer/lib/shared/index.js +754 -0
  446. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/data-stream.js +108 -0
  447. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js +143 -0
  448. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-connection/index.js +1870 -0
  449. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-pool/index.js +652 -0
  450. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-pool/pool-resource.js +259 -0
  451. package/packages/mailx-send/node_modules/nodemailer/lib/smtp-transport/index.js +421 -0
  452. package/packages/mailx-send/node_modules/nodemailer/lib/stream-transport/index.js +135 -0
  453. package/packages/mailx-send/node_modules/nodemailer/lib/well-known/index.js +47 -0
  454. package/packages/mailx-send/node_modules/nodemailer/lib/well-known/services.json +611 -0
  455. package/packages/mailx-send/node_modules/nodemailer/lib/xoauth2/index.js +427 -0
  456. package/packages/mailx-send/node_modules/nodemailer/package.json +47 -0
  457. package/packages/mailx-send/node_modules/undici-types/LICENSE +21 -0
  458. package/packages/mailx-send/node_modules/undici-types/README.md +6 -0
  459. package/packages/mailx-send/node_modules/undici-types/agent.d.ts +31 -0
  460. package/packages/mailx-send/node_modules/undici-types/api.d.ts +43 -0
  461. package/packages/mailx-send/node_modules/undici-types/balanced-pool.d.ts +29 -0
  462. package/packages/mailx-send/node_modules/undici-types/cache.d.ts +36 -0
  463. package/packages/mailx-send/node_modules/undici-types/client.d.ts +108 -0
  464. package/packages/mailx-send/node_modules/undici-types/connector.d.ts +34 -0
  465. package/packages/mailx-send/node_modules/undici-types/content-type.d.ts +21 -0
  466. package/packages/mailx-send/node_modules/undici-types/cookies.d.ts +28 -0
  467. package/packages/mailx-send/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
  468. package/packages/mailx-send/node_modules/undici-types/dispatcher.d.ts +256 -0
  469. package/packages/mailx-send/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  470. package/packages/mailx-send/node_modules/undici-types/errors.d.ts +149 -0
  471. package/packages/mailx-send/node_modules/undici-types/eventsource.d.ts +61 -0
  472. package/packages/mailx-send/node_modules/undici-types/fetch.d.ts +209 -0
  473. package/packages/mailx-send/node_modules/undici-types/file.d.ts +39 -0
  474. package/packages/mailx-send/node_modules/undici-types/filereader.d.ts +54 -0
  475. package/packages/mailx-send/node_modules/undici-types/formdata.d.ts +108 -0
  476. package/packages/mailx-send/node_modules/undici-types/global-dispatcher.d.ts +9 -0
  477. package/packages/mailx-send/node_modules/undici-types/global-origin.d.ts +7 -0
  478. package/packages/mailx-send/node_modules/undici-types/handlers.d.ts +15 -0
  479. package/packages/mailx-send/node_modules/undici-types/header.d.ts +4 -0
  480. package/packages/mailx-send/node_modules/undici-types/index.d.ts +71 -0
  481. package/packages/mailx-send/node_modules/undici-types/interceptors.d.ts +17 -0
  482. package/packages/mailx-send/node_modules/undici-types/mock-agent.d.ts +50 -0
  483. package/packages/mailx-send/node_modules/undici-types/mock-client.d.ts +25 -0
  484. package/packages/mailx-send/node_modules/undici-types/mock-errors.d.ts +12 -0
  485. package/packages/mailx-send/node_modules/undici-types/mock-interceptor.d.ts +93 -0
  486. package/packages/mailx-send/node_modules/undici-types/mock-pool.d.ts +25 -0
  487. package/packages/mailx-send/node_modules/undici-types/package.json +55 -0
  488. package/packages/mailx-send/node_modules/undici-types/patch.d.ts +33 -0
  489. package/packages/mailx-send/node_modules/undici-types/pool-stats.d.ts +19 -0
  490. package/packages/mailx-send/node_modules/undici-types/pool.d.ts +39 -0
  491. package/packages/mailx-send/node_modules/undici-types/proxy-agent.d.ts +28 -0
  492. package/packages/mailx-send/node_modules/undici-types/readable.d.ts +65 -0
  493. package/packages/mailx-send/node_modules/undici-types/retry-agent.d.ts +8 -0
  494. package/packages/mailx-send/node_modules/undici-types/retry-handler.d.ts +116 -0
  495. package/packages/mailx-send/node_modules/undici-types/util.d.ts +18 -0
  496. package/packages/mailx-send/node_modules/undici-types/webidl.d.ts +228 -0
  497. package/packages/mailx-send/node_modules/undici-types/websocket.d.ts +150 -0
  498. package/packages/mailx-send/package.json +27 -0
  499. package/packages/mailx-server/index.d.ts +8 -0
  500. package/packages/mailx-server/index.js +217 -0
  501. package/packages/mailx-server/package.json +25 -0
  502. package/packages/mailx-server/tsconfig.tsbuildinfo +1 -0
  503. package/packages/mailx-settings/index.d.ts +64 -0
  504. package/packages/mailx-settings/index.js +218 -0
  505. package/packages/mailx-settings/package.json +16 -0
  506. package/packages/mailx-settings/tsconfig.tsbuildinfo +1 -0
  507. package/packages/mailx-store/db.d.ts +100 -0
  508. package/packages/mailx-store/db.js +461 -0
  509. package/packages/mailx-store/file-store.d.ts +22 -0
  510. package/packages/mailx-store/file-store.js +59 -0
  511. package/packages/mailx-store/index.d.ts +7 -0
  512. package/packages/mailx-store/index.js +7 -0
  513. package/packages/mailx-store/package.json +19 -0
  514. package/packages/mailx-store/tsconfig.tsbuildinfo +1 -0
  515. package/packages/mailx-types/index.d.ts +195 -0
  516. package/packages/mailx-types/index.js +7 -0
  517. package/packages/mailx-types/package.json +12 -0
  518. package/packages/mailx-types/tsconfig.tsbuildinfo +1 -0
  519. package/tsconfig.base.json +28 -0
@@ -0,0 +1,283 @@
1
+ /// <reference types="node" />
2
+
3
+ import { EventEmitter } from "events";
4
+ import { Socket } from "net";
5
+ import { Readable } from "stream";
6
+ import { Url } from "url";
7
+
8
+ import { Transport, TransportOptions } from "../..";
9
+ import * as shared from "../shared";
10
+
11
+ import DKIM = require("../dkim");
12
+ import MailMessage = require("./mail-message");
13
+ import MimeNode = require("../mime-node");
14
+ import SMTPConnection = require("../smtp-connection");
15
+ import XOAuth2 = require("../xoauth2");
16
+
17
+ declare namespace Mail {
18
+ type Headers =
19
+ | { [key: string]: string | string[] | { prepared: boolean; value: string } }
20
+ | Array<{ key: string; value: string }>;
21
+
22
+ type ListHeader = string | { url: string; comment: string };
23
+
24
+ interface ListHeaders {
25
+ [key: string]: ListHeader | ListHeader[] | ListHeader[][];
26
+ }
27
+
28
+ type TextEncoding = "quoted-printable" | "base64";
29
+
30
+ interface Address {
31
+ name: string;
32
+ address: string;
33
+ }
34
+
35
+ interface AttachmentLike {
36
+ /** String, Buffer or a Stream contents for the attachment */
37
+ content?: string | Buffer | Readable | undefined;
38
+ /** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */
39
+ path?: string | Url | undefined;
40
+ }
41
+
42
+ interface Attachment extends AttachmentLike {
43
+ /** filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically */
44
+ filename?: string | false | undefined;
45
+ /** optional content id for using inline images in HTML message source. Using cid sets the default contentDisposition to 'inline' and moves the attachment into a multipart/related mime node, so use it only if you actually want to use this attachment as an embedded image */
46
+ cid?: string | undefined;
47
+ /** If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, binary etc. Useful if you want to use binary attachments in a JSON formatted e-mail object */
48
+ encoding?: string | undefined;
49
+ /** optional content type for the attachment, if not set will be derived from the filename property */
50
+ contentType?: string | undefined;
51
+ /** optional transfer encoding for the attachment, if not set it will be derived from the contentType property. Example values: quoted-printable, base64. If it is unset then base64 encoding is used for the attachment. If it is set to false then previous default applies (base64 for most, 7bit for text). */
52
+ contentTransferEncoding?: "7bit" | "base64" | "quoted-printable" | false | undefined;
53
+ /** optional content disposition type for the attachment, defaults to ‘attachment’ */
54
+ contentDisposition?: "attachment" | "inline" | undefined;
55
+ /** is an object of additional headers */
56
+ headers?: Headers | undefined;
57
+ /** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
58
+ raw?: string | Buffer | Readable | AttachmentLike | undefined;
59
+ }
60
+
61
+ interface AmpAttachment extends AttachmentLike {
62
+ /** is an alternative for content to load the AMP4EMAIL data from an URL */
63
+ href?: string | undefined;
64
+ /** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
65
+ encoding?: string | undefined;
66
+ /** optional content type for the attachment, if not set will be derived from the filename property */
67
+ contentType?: string | undefined;
68
+ /** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */
69
+ raw?: string | Buffer | Readable | AttachmentLike | undefined;
70
+ }
71
+
72
+ interface IcalAttachment extends AttachmentLike {
73
+ /** optional method, case insensitive, defaults to ‘publish’. Other possible values would be ‘request’, ‘reply’, ‘cancel’ or any other valid calendar method listed in RFC5546. This should match the METHOD: value in calendar event file. */
74
+ method?: string | undefined;
75
+ /** optional filename, defaults to ‘invite.ics’ */
76
+ filename?: string | false | undefined;
77
+ /** is an alternative for content to load the calendar data from an URL */
78
+ href?: string | undefined;
79
+ /** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */
80
+ encoding?: string | undefined;
81
+ }
82
+
83
+ interface Connection {
84
+ connection: Socket;
85
+ }
86
+
87
+ interface Envelope {
88
+ /** the first address gets used as MAIL FROM address in SMTP */
89
+ from?: string | undefined;
90
+ /** addresses from this value get added to RCPT TO list */
91
+ to?: string | undefined;
92
+ /** addresses from this value get added to RCPT TO list */
93
+ cc?: string | undefined;
94
+ /** addresses from this value get added to RCPT TO list */
95
+ bcc?: string | undefined;
96
+ }
97
+
98
+ interface Options {
99
+ /** The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name <sender@server.com>' */
100
+ from?: string | Address | undefined;
101
+ /** An e-mail address that will appear on the Sender: field */
102
+ sender?: string | Address | undefined;
103
+ /** Comma separated list or an array of recipients e-mail addresses that will appear on the To: field */
104
+ to?: string | Address | Array<string | Address> | undefined;
105
+ /** Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field */
106
+ cc?: string | Address | Array<string | Address> | undefined;
107
+ /** Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field */
108
+ bcc?: string | Address | Array<string | Address> | undefined;
109
+ /** Comma separated list or an array of e-mail addresses that will appear on the Reply-To: field */
110
+ replyTo?: string | Address | Array<string | Address> | undefined;
111
+ /** The message-id this message is replying */
112
+ inReplyTo?: string | Address | undefined;
113
+ /** Message-id list (an array or space separated string) */
114
+ references?: string | string[] | undefined;
115
+ /** The subject of the e-mail */
116
+ subject?: string | undefined;
117
+ /** The plaintext version of the message */
118
+ text?: string | Buffer | Readable | AttachmentLike | undefined;
119
+ /** The HTML version of the message */
120
+ html?: string | Buffer | Readable | AttachmentLike | undefined;
121
+ /** Apple Watch specific HTML version of the message, same usage as with text and html */
122
+ watchHtml?: string | Buffer | Readable | AttachmentLike | undefined;
123
+ /** AMP4EMAIL specific HTML version of the message, same usage as with text and html. Make sure it is a full and valid AMP4EMAIL document, otherwise the displaying email client falls back to html and ignores the amp part */
124
+ amp?: string | Buffer | Readable | AmpAttachment | undefined;
125
+ /** iCalendar event, same usage as with text and html. Event method attribute defaults to ‘PUBLISH’ or define it yourself: {method: 'REQUEST', content: iCalString}. This value is added as an additional alternative to html or text. Only utf-8 content is allowed */
126
+ icalEvent?: string | Buffer | Readable | IcalAttachment | undefined;
127
+ /** An object or array of additional header fields */
128
+ headers?: Headers | undefined;
129
+ /** An object where key names are converted into list headers. List key help becomes List-Help header etc. */
130
+ list?: ListHeaders | undefined;
131
+ /** An array of attachment objects */
132
+ attachments?: Attachment[] | undefined;
133
+ /** An array of alternative text contents (in addition to text and html parts) */
134
+ alternatives?: Attachment[] | undefined;
135
+ /** optional SMTP envelope, if auto generated envelope is not suitable */
136
+ envelope?: Envelope | MimeNode.Envelope | undefined;
137
+ /** optional Message-Id value, random value will be generated if not set */
138
+ messageId?: string | undefined;
139
+ /** optional Date value, current UTC string will be used if not set */
140
+ date?: Date | string | undefined;
141
+ /** optional transfer encoding for the textual parts */
142
+ encoding?: string | undefined;
143
+ /** if set then overwrites entire message output with this value. The value is not parsed, so you should still set address headers or the envelope value for the message to work */
144
+ raw?: string | Buffer | Readable | AttachmentLike | undefined;
145
+ /** set explicitly which encoding to use for text parts (quoted-printable or base64). If not set then encoding is detected from text content (mostly ascii means quoted-printable, otherwise base64) */
146
+ textEncoding?: TextEncoding | undefined;
147
+ /** if set to true then fails with an error when a node tries to load content from URL */
148
+ disableUrlAccess?: boolean | undefined;
149
+ /** if set to true then fails with an error when a node tries to load content from a file */
150
+ disableFileAccess?: boolean | undefined;
151
+ /** is an object with DKIM options */
152
+ dkim?: DKIM.Options | undefined;
153
+ /** method to normalize header keys for custom caseing */
154
+ normalizeHeaderKey?(key: string): string;
155
+ priority?: "high" | "normal" | "low" | undefined;
156
+ /** if set to true then converts data:images in the HTML content of message to embedded attachments */
157
+ attachDataUrls?: boolean | undefined;
158
+ /**
159
+ * if set to false then removes x-mailer header, otherwise replaces the default x-mailer header value
160
+ */
161
+ xMailer?: false | string;
162
+ }
163
+
164
+ type PluginFunction<T = any> = (mail: MailMessage<T>, callback: (err?: Error | null) => void) => void;
165
+ }
166
+
167
+ /** Creates an object for exposing the Mail API */
168
+ declare class Mail<T = any, DefaultTransportOptions = TransportOptions> extends EventEmitter {
169
+ options: Mail.Options;
170
+ meta: Map<string, any>;
171
+ dkim: DKIM;
172
+ transporter: Transport<T>;
173
+ logger: shared.Logger;
174
+
175
+ /** Usage: typeof transporter.MailMessage */
176
+ MailMessage: MailMessage<T>;
177
+
178
+ _defaults: DefaultTransportOptions;
179
+
180
+ constructor(transporter: Transport<T>, options?: TransportOptions, defaults?: DefaultTransportOptions);
181
+
182
+ /** Closes all connections in the pool. If there is a message being sent, the connection is closed later */
183
+ close(): void;
184
+
185
+ /** Returns true if there are free slots in the queue */
186
+ isIdle(): boolean;
187
+
188
+ /** Verifies SMTP configuration */
189
+ verify(callback: (err: Error | null, success: true) => void): void;
190
+ verify(): Promise<true>;
191
+
192
+ use(step: string, plugin: Mail.PluginFunction<T>): this;
193
+
194
+ /** Sends an email using the preselected transport object */
195
+ sendMail(
196
+ mailOptions: Mail.Options & Partial<DefaultTransportOptions>,
197
+ callback: (err: Error | null, info: T) => void,
198
+ ): void;
199
+ sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: T) => void): void;
200
+ sendMail(mailOptions: Mail.Options & Partial<DefaultTransportOptions>): Promise<T>;
201
+ sendMail(mailOptions: Mail.Options): Promise<T>;
202
+
203
+ getVersionString(): string;
204
+
205
+ /** Sets up proxy handler for a Nodemailer object */
206
+ setupProxy(proxyUrl: string): void;
207
+
208
+ set(
209
+ key: "oauth2_provision_cb",
210
+ value: (
211
+ user: string,
212
+ renew: boolean,
213
+ callback: (err: Error | null, accessToken?: string, expires?: number) => void,
214
+ ) => void,
215
+ ): Map<string, any>;
216
+ set(
217
+ key:
218
+ | "proxy_handler_http"
219
+ | "proxy_handler_https"
220
+ | "proxy_handler_socks"
221
+ | "proxy_handler_socks5"
222
+ | "proxy_handler_socks4"
223
+ | "proxy_handler_socks4a",
224
+ value: (
225
+ proxy: Url,
226
+ options: TransportOptions,
227
+ callback: (err: Error | null, socketOptions?: { connection: Socket }) => void,
228
+ ) => void,
229
+ ): Map<string, any>;
230
+ set(key: string, value: any): Map<string, any>;
231
+
232
+ get(
233
+ key: "oauth2_provision_cb",
234
+ ): (
235
+ user: string,
236
+ renew: boolean,
237
+ callback: (err: Error | null, accessToken: string, expires: number) => void,
238
+ ) => void;
239
+ get(
240
+ key:
241
+ | "proxy_handler_http"
242
+ | "proxy_handler_https"
243
+ | "proxy_handler_socks"
244
+ | "proxy_handler_socks5"
245
+ | "proxy_handler_socks4"
246
+ | "proxy_handler_socks4a",
247
+ ): (
248
+ proxy: Url,
249
+ options: TransportOptions,
250
+ callback: (err: Error | null, socketOptions: { connection: Socket }) => void,
251
+ ) => void;
252
+ get(key: string): any;
253
+
254
+ addListener(event: "error", listener: (err: Error) => void): this;
255
+ addListener(event: "idle", listener: () => void): this;
256
+ addListener(event: "token", listener: (token: XOAuth2.Token) => void): this;
257
+
258
+ emit(event: "error", error: Error): boolean;
259
+ emit(event: "idle"): boolean;
260
+ emit(event: "token", token: XOAuth2.Token): boolean;
261
+
262
+ on(event: "error", listener: (err: Error) => void): this;
263
+ on(event: "idle", listener: () => void): this;
264
+ on(event: "token", listener: (token: XOAuth2.Token) => void): this;
265
+
266
+ once(event: "error", listener: (err: Error) => void): this;
267
+ once(event: "idle", listener: () => void): this;
268
+ once(event: "token", listener: (token: XOAuth2.Token) => void): this;
269
+
270
+ prependListener(event: "error", listener: (err: Error) => void): this;
271
+ prependListener(event: "idle", listener: () => void): this;
272
+ prependListener(event: "end", listener: (token: XOAuth2.Token) => void): this;
273
+
274
+ prependOnceListener(event: "error", listener: (err: Error) => void): this;
275
+ prependOnceListener(event: "idle", listener: () => void): this;
276
+ prependOnceListener(event: "end", listener: (token: XOAuth2.Token) => void): this;
277
+
278
+ listeners(event: "error"): Array<(err: Error) => void>;
279
+ listeners(event: "idle"): Array<() => void>;
280
+ listeners(event: "end"): Array<(token: XOAuth2.Token) => void>;
281
+ }
282
+
283
+ export = Mail;
@@ -0,0 +1,32 @@
1
+ /// <reference types="node" />
2
+
3
+ import { Readable } from "stream";
4
+
5
+ import Mail = require(".");
6
+ import MimeNode = require("../mime-node");
7
+
8
+ declare class MailMessage<T = any> {
9
+ mailer: Mail<T>;
10
+ data: Mail.Options;
11
+ message: MimeNode;
12
+
13
+ constructor(mailer: Mail<T>, data: Mail.Options);
14
+
15
+ resolveContent(
16
+ data: object | any[],
17
+ key: string | number,
18
+ callback: (err: Error | null, value?: any) => any,
19
+ ): Promise<any>;
20
+
21
+ resolveAll(callback: (err?: Error | null, data?: Mail.Options) => void): void;
22
+
23
+ normalize(callback: (err?: Error | null, data?: Mail.Options) => void): void;
24
+
25
+ setMailerHeader(): void;
26
+
27
+ setPriorityHeaders(): void;
28
+
29
+ setListHeaders(): void;
30
+ }
31
+
32
+ export = MailMessage;
@@ -0,0 +1,87 @@
1
+ export interface HeaderValue {
2
+ value: string;
3
+ params?: { [key: string]: string } | undefined;
4
+ }
5
+
6
+ export interface ParsedHeaderValue extends HeaderValue {
7
+ params: { [key: string]: string };
8
+ }
9
+
10
+ export interface ParsedHeaderParam {
11
+ key: string;
12
+ value: string;
13
+ }
14
+
15
+ /** Checks if a value is plaintext string (uses only printable 7bit chars) */
16
+ export function isPlainText(value: string): boolean;
17
+
18
+ /**
19
+ * Checks if a multi line string containes lines longer than the selected value.
20
+ *
21
+ * Useful when detecting if a mail message needs any processing at all –
22
+ * if only plaintext characters are used and lines are short, then there is
23
+ * no need to encode the values in any way. If the value is plaintext but has
24
+ * longer lines then allowed, then use format=flowed
25
+ */
26
+ export function hasLongerLines(str: string, lineLength: number): boolean;
27
+
28
+ /** Encodes a string or an Buffer to an UTF-8 MIME Word (rfc2047) */
29
+ export function encodeWord(data: Buffer | string, mimeWordEncoding?: "Q" | "B", maxLength?: number): string;
30
+
31
+ /** Finds word sequences with non ascii text and converts these to mime words */
32
+ export function encodeWords(value: string, mimeWordEncoding?: "Q" | "B", maxLength?: number): string;
33
+
34
+ /**
35
+ * Joins parsed header value together as 'value; param1=value1; param2=value2'
36
+ * PS: We are following RFC 822 for the list of special characters that we need to keep in quotes.
37
+ * Refer: https://www.w3.org/Protocols/rfc1341/4_Content-Type.html
38
+ */
39
+ export function buildHeaderValue(structured: HeaderValue): string;
40
+
41
+ /**
42
+ * Encodes a string or an Buffer to an UTF-8 Parameter Value Continuation encoding (rfc2231)
43
+ * Useful for splitting long parameter values.
44
+ *
45
+ * For example
46
+ * ```
47
+ * title="unicode string"
48
+ * ```
49
+ * becomes
50
+ * ```
51
+ * title*0*=utf-8''unicode
52
+ * title*1*=%20string
53
+ * ```
54
+ */
55
+ export function buildHeaderParam(key: string, data: Buffer | string, maxLength?: number): ParsedHeaderParam[];
56
+
57
+ /**
58
+ * Parses a header value with key=value arguments into a structured
59
+ * object.
60
+ *
61
+ * ```
62
+ * parseHeaderValue('content-type: text/plain; CHARSET='UTF-8') ->
63
+ * {
64
+ * 'value': 'text/plain',
65
+ * 'params': {
66
+ * 'charset': 'UTF-8'
67
+ * }
68
+ * }
69
+ * ```
70
+ */
71
+ export function parseHeaderValue(str: string): ParsedHeaderValue;
72
+
73
+ /** Returns file extension for a content type string. If no suitable extensions are found, 'bin' is used as the default extension */
74
+ export function detectExtension(mimeType: string): string;
75
+
76
+ /** Returns content type for a file extension. If no suitable content types are found, 'application/octet-stream' is used as the default content type */
77
+ export function detectMimeType(extension: string): string;
78
+
79
+ /** Folds long lines, useful for folding header lines (afterSpace=false) and flowed text (afterSpace=true) */
80
+ export function foldLines(str: string, lineLength?: number, afterSpace?: boolean): string;
81
+
82
+ /** Splits a mime encoded string. Needed for dividing mime words into smaller chunks */
83
+ export function splitMimeEncodedString(str: string, maxlen?: number): string[];
84
+
85
+ export function encodeURICharComponent(chr: string): string;
86
+
87
+ export function safeEncodeURIComponent(str: string): string;
@@ -0,0 +1,2 @@
1
+ export function detectMimeType(filename: string | false): string;
2
+ export function detectExtension(mimeType: string | false): string;
@@ -0,0 +1,224 @@
1
+ /// <reference types="node" />
2
+
3
+ import { Readable, ReadableOptions, Transform } from "stream";
4
+
5
+ import Mail = require("../mailer");
6
+
7
+ declare namespace MimeNode {
8
+ interface Addresses {
9
+ from?: string[] | undefined;
10
+ sender?: string[] | undefined;
11
+ "reply-to"?: string[] | undefined;
12
+ to?: string[] | undefined;
13
+ cc?: string[] | undefined;
14
+ bcc?: string[] | undefined;
15
+ }
16
+
17
+ interface Envelope {
18
+ /** includes an address object or is set to false */
19
+ from: string | false;
20
+ /** includes an array of address objects */
21
+ to: string[];
22
+ }
23
+
24
+ interface Options {
25
+ /** root node for this tree */
26
+ rootNode?: MimeNode | undefined;
27
+
28
+ /** immediate parent for this node */
29
+ parentNode?: MimeNode | undefined;
30
+
31
+ /** filename for an attachment node */
32
+ filename?: string | undefined;
33
+
34
+ /** Hostname for default message-id values */
35
+ hostname?: string | undefined;
36
+
37
+ /** shared part of the unique multipart boundary */
38
+ baseBoundary?: string | undefined;
39
+
40
+ /** If true, do not exclude Bcc from the generated headers */
41
+ keepBcc?: boolean | undefined;
42
+
43
+ /**
44
+ * If set to 'win' then uses \r\n,
45
+ * if 'linux' then \n.
46
+ * If not set (or `raw` is used) then newlines are kept as is.
47
+ */
48
+ newline?: string | undefined;
49
+
50
+ /** either 'Q' (the default) or 'B' */
51
+ textEncoding?: "B" | "Q" | undefined;
52
+
53
+ /** method to normalize header keys for custom caseing */
54
+ normalizeHeaderKey?(key: string): string;
55
+
56
+ /** undocumented */
57
+ boundaryPrefix?: string | undefined;
58
+
59
+ /** Undocumented */
60
+ disableFileAccess?: boolean | undefined;
61
+
62
+ /** Undocumented */
63
+ disableUrlAccess?: boolean | undefined;
64
+ }
65
+ }
66
+
67
+ /**
68
+ * Creates a new mime tree node. Assumes 'multipart/*' as the content type
69
+ * if it is a branch, anything else counts as leaf. If rootNode is missing from
70
+ * the options, assumes this is the root.
71
+ */
72
+ declare class MimeNode {
73
+ constructor(contentType?: string, options?: MimeNode.Options);
74
+
75
+ /** Creates and appends a child node.Arguments provided are passed to MimeNode constructor */
76
+ createChild(contentType: string, options?: MimeNode.Options): MimeNode;
77
+
78
+ /** Appends an existing node to the mime tree. Removes the node from an existing tree if needed */
79
+ appendChild(childNode: MimeNode): MimeNode;
80
+
81
+ /** Replaces current node with another node */
82
+ replace(node: MimeNode): MimeNode;
83
+
84
+ /** Removes current node from the mime tree */
85
+ remove(): this;
86
+
87
+ /**
88
+ * Sets a header value. If the value for selected key exists, it is overwritten.
89
+ * You can set multiple values as well by using [{key:'', value:''}] or
90
+ * {key: 'value'} as the first argument.
91
+ */
92
+ setHeader(key: string, value: string | string[]): this;
93
+ setHeader(headers: { [key: string]: string } | Array<{ key: string; value: string }>): this;
94
+
95
+ /**
96
+ * Adds a header value. If the value for selected key exists, the value is appended
97
+ * as a new field and old one is not touched.
98
+ * You can set multiple values as well by using [{key:'', value:''}] or
99
+ * {key: 'value'} as the first argument.
100
+ */
101
+ addHeader(key: string, value: string): this;
102
+ addHeader(headers: { [key: string]: string } | Array<{ key: string; value: string }>): this;
103
+
104
+ /** Retrieves the first mathcing value of a selected key */
105
+ getHeader(key: string): string;
106
+
107
+ /**
108
+ * Sets body content for current node. If the value is a string, charset is added automatically
109
+ * to Content-Type (if it is text/*). If the value is a Buffer, you need to specify
110
+ * the charset yourself
111
+ */
112
+ setContent(content: string | Buffer | Readable): this;
113
+
114
+ /** Generate the message and return it with a callback or promise */
115
+ build(callback: (err: Error | null, buf: Buffer) => void): void;
116
+ build(): Promise<Buffer>;
117
+
118
+ getTransferEncoding(): string;
119
+
120
+ /** Builds the header block for the mime node. Append \r\n\r\n before writing the content */
121
+ buildHeaders(): string;
122
+
123
+ /**
124
+ * Streams the rfc2822 message from the current node. If this is a root node,
125
+ * mandatory header fields are set if missing (Date, Message-Id, MIME-Version)
126
+ */
127
+ createReadStream(options?: ReadableOptions): Readable;
128
+
129
+ /**
130
+ * Appends a transform stream object to the transforms list. Final output
131
+ * is passed through this stream before exposing
132
+ */
133
+ transform(transform: Transform): void;
134
+
135
+ /**
136
+ * Appends a post process function. The functon is run after transforms and
137
+ * uses the following syntax
138
+ *
139
+ * processFunc(input) -> outputStream
140
+ */
141
+ processFunc(processFunc: (outputStream: Readable) => Readable): void;
142
+
143
+ stream(outputStream: Readable, options: ReadableOptions, done: (err?: Error | null) => void): void;
144
+
145
+ /** Sets envelope to be used instead of the generated one */
146
+ setEnvelope(envelope: Mail.Envelope): this;
147
+
148
+ /** Generates and returns an object with parsed address fields */
149
+ getAddresses(): MimeNode.Addresses;
150
+
151
+ /** Generates and returns SMTP envelope with the sender address and a list of recipients addresses */
152
+ getEnvelope(): MimeNode.Envelope;
153
+
154
+ /** Returns Message-Id value. If it does not exist, then creates one */
155
+ messageId(): string;
156
+
157
+ /** Sets pregenerated content that will be used as the output of this node */
158
+ setRaw(raw: string | Buffer | Readable): this;
159
+
160
+ /** shared part of the unique multipart boundary */
161
+ baseBoundary: string;
162
+
163
+ /** a multipart boundary value */
164
+ boundary?: string | false | undefined;
165
+
166
+ /** Undocumented */
167
+ boundaryPrefix: string;
168
+
169
+ /* An array for possible child nodes */
170
+ childNodes: MimeNode[];
171
+
172
+ /** body content for current node */
173
+ content?: string | Buffer | Readable | undefined;
174
+
175
+ /** Undocumented */
176
+ contentType?: string | undefined;
177
+
178
+ /**
179
+ * If date headers is missing and current node is the root, this value is used instead
180
+ */
181
+ date: Date;
182
+
183
+ /** Undocumented */
184
+ disableFileAccess: boolean;
185
+
186
+ /** Undocumented */
187
+ disableUrlAccess: boolean;
188
+
189
+ /** filename for an attachment node */
190
+ filename?: string | undefined;
191
+
192
+ /** Hostname for default message-id values */
193
+ hostname?: string | undefined;
194
+
195
+ /** If true, do not exclude Bcc from the generated headers */
196
+ keepBcc: boolean;
197
+
198
+ /** Undocumented */
199
+ multipart?: boolean | undefined;
200
+
201
+ /**
202
+ * If set to 'win' then uses \r\n,
203
+ * if 'linux' then \n.
204
+ * If not set (or `raw` is used) then newlines are kept as is.
205
+ */
206
+ newline?: string | undefined;
207
+
208
+ /** Undocumented */
209
+ nodeCounter: number;
210
+
211
+ /** method to normalize header keys for custom caseing */
212
+ normalizeHeaderKey?: ((key: string) => string) | undefined;
213
+
214
+ /* Immediate parent for this node (or undefined if not set) */
215
+ parentNode?: MimeNode | undefined;
216
+
217
+ /** root node for this tree */
218
+ rootNode: MimeNode;
219
+
220
+ /** either 'Q' (the default) or 'B' */
221
+ textEncoding: "B" | "Q" | "";
222
+ }
223
+
224
+ export = MimeNode;
@@ -0,0 +1,9 @@
1
+ /// <reference types="node" />
2
+
3
+ import { Transform } from "stream";
4
+
5
+ declare class LastNewline extends Transform {
6
+ lastByte: boolean;
7
+ }
8
+
9
+ export = LastNewline;
@@ -0,0 +1,23 @@
1
+ /// <reference types="node" />
2
+
3
+ import { Transform, TransformOptions } from "stream";
4
+
5
+ /** Encodes a Buffer into a Quoted-Printable encoded string */
6
+ export function encode(buffer: Buffer | string): string;
7
+
8
+ /** Adds soft line breaks to a Quoted-Printable string */
9
+ export function wrap(str: string, lineLength?: number): string;
10
+
11
+ export interface EncoderOptions extends TransformOptions {
12
+ lineLength?: number | false | undefined;
13
+ }
14
+
15
+ /** Creates a transform stream for encoding data to Quoted-Printable encoding */
16
+ export class Encoder extends Transform {
17
+ options: EncoderOptions;
18
+
19
+ inputBytes: number;
20
+ outputBytes: number;
21
+
22
+ constructor(options?: EncoderOptions);
23
+ }