@mavogel/awscdk-rootmail 0.1.55 → 0.1.57

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 (223) hide show
  1. package/.jsii +9 -9
  2. package/API.md +4 -0
  3. package/lib/rootmail.js +1 -1
  4. package/lib/ses-receive.js +1 -1
  5. package/node_modules/@aws-sdk/checksums/package.json +2 -2
  6. package/node_modules/@aws-sdk/client-cloudwatch-logs/dist-cjs/index.js +1 -1
  7. package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +3 -3
  8. package/node_modules/@aws-sdk/client-route-53/README.md +130 -9
  9. package/node_modules/@aws-sdk/client-route-53/dist-cjs/index.js +647 -43
  10. package/node_modules/@aws-sdk/client-route-53/dist-es/Route53.js +30 -0
  11. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/CreateHealthCheckSourceCommand.js +4 -0
  12. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/DeleteHealthCheckSourceCommand.js +4 -0
  13. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/GetHealthCheckSourceCommand.js +4 -0
  14. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/GetHostedZoneChangeBatchCommand.js +4 -0
  15. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListHealthCheckSourcesCommand.js +4 -0
  16. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListHealthChecksBySourceCommand.js +4 -0
  17. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListHostedZoneChangeBatchesCommand.js +4 -0
  18. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/ListResourceRecordSetChangesCommand.js +4 -0
  19. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/UpdateHostedZoneTierCommand.js +4 -0
  20. package/node_modules/@aws-sdk/client-route-53/dist-es/commands/index.js +9 -0
  21. package/node_modules/@aws-sdk/client-route-53/dist-es/models/enums.js +67 -0
  22. package/node_modules/@aws-sdk/client-route-53/dist-es/models/errors.js +52 -0
  23. package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListHealthCheckSourcesPaginator.js +4 -0
  24. package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListHealthChecksBySourcePaginator.js +4 -0
  25. package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListHostedZoneChangeBatchesPaginator.js +4 -0
  26. package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/ListResourceRecordSetChangesPaginator.js +4 -0
  27. package/node_modules/@aws-sdk/client-route-53/dist-es/pagination/index.js +4 -0
  28. package/node_modules/@aws-sdk/client-route-53/dist-es/schemas/schemas_0.js +323 -43
  29. package/node_modules/@aws-sdk/client-route-53/dist-es/waiters/index.js +2 -0
  30. package/node_modules/@aws-sdk/client-route-53/dist-es/waiters/waitForHealthCheckSourceCreated.js +43 -0
  31. package/node_modules/@aws-sdk/client-route-53/dist-es/waiters/waitForHealthCheckSourceDeleted.js +43 -0
  32. package/node_modules/@aws-sdk/client-route-53/dist-types/Route53.d.ts +172 -9
  33. package/node_modules/@aws-sdk/client-route-53/dist-types/Route53Client.d.ts +78 -11
  34. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ChangeResourceRecordSetsCommand.d.ts +4 -0
  35. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ChangeTagsForResourceCommand.d.ts +5 -2
  36. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckCommand.d.ts +16 -6
  37. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHealthCheckSourceCommand.d.ts +109 -0
  38. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/CreateHostedZoneCommand.d.ts +20 -0
  39. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/DeleteHealthCheckSourceCommand.d.ts +87 -0
  40. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetAccountLimitCommand.d.ts +2 -2
  41. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHealthCheckCommand.d.ts +2 -0
  42. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHealthCheckSourceCommand.d.ts +94 -0
  43. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneChangeBatchCommand.d.ts +145 -0
  44. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/GetHostedZoneCommand.d.ts +12 -0
  45. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthCheckSourcesCommand.d.ts +96 -0
  46. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthChecksBySourceCommand.d.ts +138 -0
  47. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHealthChecksCommand.d.ts +2 -0
  48. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZoneChangeBatchesCommand.d.ts +104 -0
  49. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesByNameCommand.d.ts +12 -0
  50. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListHostedZonesCommand.d.ts +12 -0
  51. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetChangesCommand.d.ts +148 -0
  52. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListResourceRecordSetsCommand.d.ts +4 -0
  53. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListTagsForResourceCommand.d.ts +5 -2
  54. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/ListTagsForResourcesCommand.d.ts +5 -2
  55. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHealthCheckCommand.d.ts +3 -0
  56. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneCommentCommand.d.ts +12 -0
  57. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneFeaturesCommand.d.ts +10 -1
  58. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/UpdateHostedZoneTierCommand.d.ts +86 -0
  59. package/node_modules/@aws-sdk/client-route-53/dist-types/commands/index.d.ts +9 -0
  60. package/node_modules/@aws-sdk/client-route-53/dist-types/index.d.ts +67 -9
  61. package/node_modules/@aws-sdk/client-route-53/dist-types/models/enums.d.ts +155 -0
  62. package/node_modules/@aws-sdk/client-route-53/dist-types/models/errors.d.ts +57 -3
  63. package/node_modules/@aws-sdk/client-route-53/dist-types/models/models_0.d.ts +950 -40
  64. package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListHealthCheckSourcesPaginator.d.ts +7 -0
  65. package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListHealthChecksBySourcePaginator.d.ts +7 -0
  66. package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListHostedZoneChangeBatchesPaginator.d.ts +7 -0
  67. package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/ListResourceRecordSetChangesPaginator.d.ts +7 -0
  68. package/node_modules/@aws-sdk/client-route-53/dist-types/pagination/index.d.ts +4 -0
  69. package/node_modules/@aws-sdk/client-route-53/dist-types/schemas/schemas_0.d.ts +39 -0
  70. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53.d.ts +195 -0
  71. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/Route53Client.d.ts +54 -0
  72. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/CreateHealthCheckSourceCommand.d.ts +42 -0
  73. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/DeleteHealthCheckSourceCommand.d.ts +42 -0
  74. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/GetHealthCheckSourceCommand.d.ts +39 -0
  75. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/GetHostedZoneChangeBatchCommand.d.ts +42 -0
  76. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListHealthCheckSourcesCommand.d.ts +39 -0
  77. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListHealthChecksBySourceCommand.d.ts +42 -0
  78. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListHostedZoneChangeBatchesCommand.d.ts +42 -0
  79. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/ListResourceRecordSetChangesCommand.d.ts +42 -0
  80. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/UpdateHostedZoneTierCommand.d.ts +39 -0
  81. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/commands/index.d.ts +9 -0
  82. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/enums.d.ts +84 -0
  83. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/errors.d.ts +24 -0
  84. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/models/models_0.d.ts +154 -0
  85. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListHealthCheckSourcesPaginator.d.ts +11 -0
  86. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListHealthChecksBySourcePaginator.d.ts +11 -0
  87. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListHostedZoneChangeBatchesPaginator.d.ts +11 -0
  88. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/ListResourceRecordSetChangesPaginator.d.ts +11 -0
  89. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/pagination/index.d.ts +4 -0
  90. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/schemas/schemas_0.d.ts +39 -0
  91. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/waiters/index.d.ts +2 -0
  92. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/waiters/waitForHealthCheckSourceCreated.d.ts +15 -0
  93. package/node_modules/@aws-sdk/client-route-53/dist-types/ts3.4/waiters/waitForHealthCheckSourceDeleted.d.ts +16 -0
  94. package/node_modules/@aws-sdk/client-route-53/dist-types/waiters/index.d.ts +2 -0
  95. package/node_modules/@aws-sdk/client-route-53/dist-types/waiters/waitForHealthCheckSourceCreated.d.ts +15 -0
  96. package/node_modules/@aws-sdk/client-route-53/dist-types/waiters/waitForHealthCheckSourceDeleted.d.ts +16 -0
  97. package/node_modules/@aws-sdk/client-route-53/package.json +3 -3
  98. package/node_modules/@aws-sdk/client-s3/dist-cjs/index.js +1 -1
  99. package/node_modules/@aws-sdk/client-s3/package.json +6 -6
  100. package/node_modules/@aws-sdk/client-ses/dist-cjs/index.js +1 -1
  101. package/node_modules/@aws-sdk/client-ses/package.json +3 -3
  102. package/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +29 -15
  103. package/node_modules/@aws-sdk/client-ssm/dist-es/models/enums.js +5 -0
  104. package/node_modules/@aws-sdk/client-ssm/dist-es/schemas/schemas_0.js +22 -14
  105. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +6 -0
  106. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +3 -0
  107. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts +3 -0
  108. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +3 -0
  109. package/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +6 -0
  110. package/node_modules/@aws-sdk/client-ssm/dist-types/models/enums.d.ts +13 -0
  111. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +51 -5
  112. package/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +58 -2
  113. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/enums.d.ts +6 -0
  114. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +3 -0
  115. package/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +4 -0
  116. package/node_modules/@aws-sdk/client-ssm/package.json +3 -3
  117. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +17 -12
  118. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-logger/loggerMiddleware.js +17 -12
  119. package/node_modules/@aws-sdk/core/package.json +1 -1
  120. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  121. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  122. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  123. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  124. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  125. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  126. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  127. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  128. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +2 -2
  129. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  130. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  131. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  132. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  133. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  134. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  135. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  136. package/node_modules/cdk-nag/.devcontainer.json +2 -2
  137. package/node_modules/cdk-nag/.jsii +7 -6
  138. package/node_modules/cdk-nag/.jsii.tabl.json +1 -1
  139. package/node_modules/cdk-nag/.pre-commit-config.yaml +1 -1
  140. package/node_modules/cdk-nag/.yarn/install-state.gz +0 -0
  141. package/node_modules/cdk-nag/.yarnrc.yml +3 -0
  142. package/node_modules/cdk-nag/CONTRIBUTING.md +8 -8
  143. package/node_modules/cdk-nag/Dockerfile +2 -3
  144. package/node_modules/cdk-nag/README.md +3 -1
  145. package/node_modules/cdk-nag/lib/index.js +24 -2
  146. package/node_modules/cdk-nag/lib/nag-pack.js +15 -12
  147. package/node_modules/cdk-nag/lib/nag-rules.js +2 -4
  148. package/node_modules/cdk-nag/lib/packs/aws-solutions.js +3 -5
  149. package/node_modules/cdk-nag/lib/packs/hipaa-security.js +3 -5
  150. package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +3 -5
  151. package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +3 -5
  152. package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +3 -5
  153. package/node_modules/cdk-nag/lib/packs/serverless.js +3 -5
  154. package/node_modules/cdk-nag/lib/rules/apigw/index.js +14 -11
  155. package/node_modules/cdk-nag/lib/rules/appsync/index.js +6 -3
  156. package/node_modules/cdk-nag/lib/rules/autoscaling/index.js +9 -6
  157. package/node_modules/cdk-nag/lib/rules/cloud9/index.js +5 -2
  158. package/node_modules/cdk-nag/lib/rules/cloudfront/index.js +11 -8
  159. package/node_modules/cdk-nag/lib/rules/cloudtrail/index.js +7 -4
  160. package/node_modules/cdk-nag/lib/rules/cloudwatch/index.js +7 -4
  161. package/node_modules/cdk-nag/lib/rules/codebuild/index.js +8 -5
  162. package/node_modules/cdk-nag/lib/rules/cognito/index.js +9 -6
  163. package/node_modules/cdk-nag/lib/rules/dms/index.js +5 -2
  164. package/node_modules/cdk-nag/lib/rules/documentdb/index.js +9 -6
  165. package/node_modules/cdk-nag/lib/rules/dynamodb/index.js +8 -5
  166. package/node_modules/cdk-nag/lib/rules/ec2/index.js +17 -14
  167. package/node_modules/cdk-nag/lib/rules/ecr/index.js +5 -2
  168. package/node_modules/cdk-nag/lib/rules/ecs/index.js +8 -5
  169. package/node_modules/cdk-nag/lib/rules/efs/index.js +6 -3
  170. package/node_modules/cdk-nag/lib/rules/eks/index.js +6 -3
  171. package/node_modules/cdk-nag/lib/rules/elasticache/index.js +10 -7
  172. package/node_modules/cdk-nag/lib/rules/elasticbeanstalk/index.js +8 -5
  173. package/node_modules/cdk-nag/lib/rules/elb/index.js +15 -12
  174. package/node_modules/cdk-nag/lib/rules/emr/index.js +9 -6
  175. package/node_modules/cdk-nag/lib/rules/eventbridge/index.js +6 -3
  176. package/node_modules/cdk-nag/lib/rules/glue/index.js +6 -3
  177. package/node_modules/cdk-nag/lib/rules/iam/index.js +12 -9
  178. package/node_modules/cdk-nag/lib/rules/index.js +79 -46
  179. package/node_modules/cdk-nag/lib/rules/kinesis/index.js +8 -5
  180. package/node_modules/cdk-nag/lib/rules/kms/index.js +5 -2
  181. package/node_modules/cdk-nag/lib/rules/lambda/index.js +17 -14
  182. package/node_modules/cdk-nag/lib/rules/lex/index.js +5 -2
  183. package/node_modules/cdk-nag/lib/rules/mediastore/index.js +10 -7
  184. package/node_modules/cdk-nag/lib/rules/msk/index.js +7 -4
  185. package/node_modules/cdk-nag/lib/rules/mwaa/index.js +5 -2
  186. package/node_modules/cdk-nag/lib/rules/neptune/index.js +9 -6
  187. package/node_modules/cdk-nag/lib/rules/opensearch/index.js +13 -10
  188. package/node_modules/cdk-nag/lib/rules/quicksight/index.js +5 -2
  189. package/node_modules/cdk-nag/lib/rules/rds/index.js +18 -15
  190. package/node_modules/cdk-nag/lib/rules/redshift/index.js +17 -14
  191. package/node_modules/cdk-nag/lib/rules/s3/index.js +14 -11
  192. package/node_modules/cdk-nag/lib/rules/sagemaker/index.js +8 -5
  193. package/node_modules/cdk-nag/lib/rules/secretsmanager/index.js +6 -3
  194. package/node_modules/cdk-nag/lib/rules/sns/index.js +7 -4
  195. package/node_modules/cdk-nag/lib/rules/sqs/index.js +8 -5
  196. package/node_modules/cdk-nag/lib/rules/stepfunctions/index.js +6 -3
  197. package/node_modules/cdk-nag/lib/rules/timestream/index.js +5 -2
  198. package/node_modules/cdk-nag/lib/rules/vpc/index.js +9 -6
  199. package/node_modules/cdk-nag/lib/rules/waf/index.js +5 -2
  200. package/node_modules/cdk-nag/package.json +24 -16
  201. package/node_modules/mailparser/CHANGELOG.md +12 -0
  202. package/node_modules/mailparser/README.md +2 -0
  203. package/node_modules/mailparser/dist/cjs/mail-parser.js +1 -2
  204. package/node_modules/mailparser/dist/cjs/types.d.ts +7 -0
  205. package/node_modules/mailparser/dist/esm/mail-parser.js +1 -2
  206. package/node_modules/mailparser/dist/esm/types.d.ts +7 -0
  207. package/node_modules/mailparser/package.json +3 -3
  208. package/node_modules/nodemailer/CHANGELOG.md +8 -0
  209. package/node_modules/nodemailer/dist/cjs/dkim/sign.js +3 -2
  210. package/node_modules/nodemailer/dist/cjs/fetch/cookies.d.ts +3 -1
  211. package/node_modules/nodemailer/dist/cjs/fetch/cookies.js +8 -2
  212. package/node_modules/nodemailer/dist/cjs/package-info.d.ts +1 -1
  213. package/node_modules/nodemailer/dist/cjs/package-info.js +1 -1
  214. package/node_modules/nodemailer/dist/cjs/well-known/services.js +6 -0
  215. package/node_modules/nodemailer/dist/esm/dkim/sign.js +3 -2
  216. package/node_modules/nodemailer/dist/esm/fetch/cookies.d.ts +3 -1
  217. package/node_modules/nodemailer/dist/esm/fetch/cookies.js +8 -2
  218. package/node_modules/nodemailer/dist/esm/package-info.d.ts +1 -1
  219. package/node_modules/nodemailer/dist/esm/package-info.js +1 -1
  220. package/node_modules/nodemailer/dist/esm/well-known/services.js +6 -0
  221. package/node_modules/nodemailer/dist/well-known/services.json +7 -0
  222. package/node_modules/nodemailer/package.json +7 -7
  223. package/package.json +7 -7
@@ -1016,8 +1016,7 @@ class MailParser extends node_stream_1.Transform {
1016
1016
  contentStream.pipe(flowDecoder);
1017
1017
  node.contentStream = flowDecoder;
1018
1018
  }
1019
- let charset = node.charset || 'utf-8';
1020
- //charset = charset || 'windows-1257';
1019
+ let charset = node.charset || this.options.defaultTextCharset || 'utf-8';
1021
1020
  if (!['ascii', 'usascii', 'utf8'].includes(charset.toLowerCase().replace(/[^a-z0-9]+/g, ''))) {
1022
1021
  try {
1023
1022
  let contentStream = node.contentStream;
@@ -246,6 +246,13 @@ export interface MailParserOptions {
246
246
  * @default false
247
247
  */
248
248
  keepDeliveryStatus?: boolean;
249
+ /**
250
+ * The charset of a text body whose `Content-Type` names none, for a source known to send such
251
+ * bodies in a legacy charset (eg. `'windows-1252'`). A body that declares its charset is decoded
252
+ * from that charset regardless.
253
+ * @default 'utf-8'
254
+ */
255
+ defaultTextCharset?: string;
249
256
  /**
250
257
  * Decode the character sets of text bodies with the native `iconv` module instead of libmime's
251
258
  * decoder (`iconv-lite`). Pass the `Iconv` class: `{ Iconv: require('iconv').Iconv }`. Bodies
@@ -1011,8 +1011,7 @@ class MailParser extends Transform {
1011
1011
  contentStream.pipe(flowDecoder);
1012
1012
  node.contentStream = flowDecoder;
1013
1013
  }
1014
- let charset = node.charset || 'utf-8';
1015
- //charset = charset || 'windows-1257';
1014
+ let charset = node.charset || this.options.defaultTextCharset || 'utf-8';
1016
1015
  if (!['ascii', 'usascii', 'utf8'].includes(charset.toLowerCase().replace(/[^a-z0-9]+/g, ''))) {
1017
1016
  try {
1018
1017
  let contentStream = node.contentStream;
@@ -246,6 +246,13 @@ export interface MailParserOptions {
246
246
  * @default false
247
247
  */
248
248
  keepDeliveryStatus?: boolean;
249
+ /**
250
+ * The charset of a text body whose `Content-Type` names none, for a source known to send such
251
+ * bodies in a legacy charset (eg. `'windows-1252'`). A body that declares its charset is decoded
252
+ * from that charset regardless.
253
+ * @default 'utf-8'
254
+ */
255
+ defaultTextCharset?: string;
249
256
  /**
250
257
  * Decode the character sets of text bodies with the native `iconv` module instead of libmime's
251
258
  * decoder (`iconv-lite`). Pass the `Iconv` class: `{ Iconv: require('iconv').Iconv }`. Bodies
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailparser",
3
- "version": "3.14.5",
3
+ "version": "3.15.0",
4
4
  "description": "Parse e-mails",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -97,7 +97,7 @@
97
97
  "html-to-text": "10.0.1",
98
98
  "libmime": "5.6.5",
99
99
  "linkify-it": "6.1.0",
100
- "nodemailer": "10.6.0",
100
+ "nodemailer": "10.6.1",
101
101
  "punycode.js": "2.3.1",
102
102
  "tlds": "1.261.0"
103
103
  },
@@ -112,7 +112,7 @@
112
112
  "prettier": "3.10.1",
113
113
  "tsx": "4.23.15",
114
114
  "typescript": "6.0.3",
115
- "typescript-eslint": "8.72.2"
115
+ "typescript-eslint": "8.73.0"
116
116
  },
117
117
  "repository": {
118
118
  "type": "git",
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## [10.6.1](https://github.com/nodemailer/nodemailer/compare/v10.6.0...v10.6.1) (2026-11-20)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **dkim:** sign List-Unsubscribe-Post by default ([#1922](https://github.com/nodemailer/nodemailer/issues/1922)) ([f91077c](https://github.com/nodemailer/nodemailer/commit/f91077c5bbc175fbb853d3c1cf3131c30283d52b))
9
+ * **fetch:** identify cookies by name, domain and path ([#1920](https://github.com/nodemailer/nodemailer/issues/1920)) ([91a298f](https://github.com/nodemailer/nodemailer/commit/91a298fc112017decdeb2b401238e901dd4b2256))
10
+
3
11
  ## [10.6.0](https://github.com/nodemailer/nodemailer/compare/v10.5.0...v10.6.0) (2026-11-15)
4
12
 
5
13
 
@@ -62,12 +62,13 @@ function unsupportedHashAlgoError(hashAlgo) {
62
62
  */
63
63
  function sign(headers, hashAlgo, bodyHash, options) {
64
64
  options = options || {};
65
- // all listed fields from RFC4871 #5.5
65
+ // all listed fields from RFC4871 #5.5, plus List-Unsubscribe-Post: RFC 8058 only allows
66
+ // one-click unsubscribe when the signature covers it next to List-Unsubscribe
66
67
  const defaultFieldNames = 'From:Sender:Reply-To:Subject:Date:Message-ID:To:' +
67
68
  'Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:' +
68
69
  'Content-Description:Resent-Date:Resent-From:Resent-Sender:' +
69
70
  'Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:' +
70
- 'List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:' +
71
+ 'List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:List-Subscribe:List-Post:' +
71
72
  'List-Owner:List-Archive:OTP-Token';
72
73
  const fieldNames = options.headerFieldNames || defaultFieldNames;
73
74
  const canonicalizedHeaderData = relaxedHeaders(headers, fieldNames, options.skipFields);
@@ -71,7 +71,9 @@ declare class Cookies {
71
71
  */
72
72
  add(cookie: Cookie): boolean;
73
73
  /**
74
- * Checks if two cookie objects are the same
74
+ * Checks if two cookie objects are the same cookie. A cookie is identified by its
75
+ * name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
76
+ * attributes of the stored cookie that an update replaces
75
77
  *
76
78
  * @param a Cookie to check against
77
79
  * @param b Cookie to check against
@@ -89,6 +89,10 @@ class Cookies {
89
89
  if (!cookie.expires) {
90
90
  cookie.expires = new Date(Date.now() + (Number(this.options.sessionTimeout || SESSION_TIMEOUT) || SESSION_TIMEOUT) * 1000);
91
91
  }
92
+ // a non-secure url can not set a Secure cookie, nor overwrite or delete one (RFC 6265bis section 5.7)
93
+ if (urlparts.protocol !== 'https:' && (cookie.secure || this.cookies.some(stored => stored.secure && this.compare(stored, cookie)))) {
94
+ return false;
95
+ }
92
96
  return this.add(cookie);
93
97
  }
94
98
  /**
@@ -247,14 +251,16 @@ class Cookies {
247
251
  return true;
248
252
  }
249
253
  /**
250
- * Checks if two cookie objects are the same
254
+ * Checks if two cookie objects are the same cookie. A cookie is identified by its
255
+ * name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
256
+ * attributes of the stored cookie that an update replaces
251
257
  *
252
258
  * @param a Cookie to check against
253
259
  * @param b Cookie to check against
254
260
  * @returns True, if the cookies are the same
255
261
  */
256
262
  compare(a, b) {
257
- return a.name === b.name && a.path === b.path && a.domain === b.domain && a.secure === b.secure && a.httponly === b.httponly;
263
+ return a.name === b.name && a.path === b.path && a.domain === b.domain;
258
264
  }
259
265
  /**
260
266
  * Checks if a cookie is expired
@@ -1,3 +1,3 @@
1
1
  export declare const name = "nodemailer";
2
- export declare const version = "10.6.0";
2
+ export declare const version = "10.6.1";
3
3
  export declare const homepage = "https://nodemailer.com/";
@@ -3,5 +3,5 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.homepage = exports.version = exports.name = void 0;
5
5
  exports.name = 'nodemailer';
6
- exports.version = '10.6.0';
6
+ exports.version = '10.6.1';
7
7
  exports.homepage = 'https://nodemailer.com/';
@@ -463,6 +463,12 @@ exports.services = {
463
463
  "host": "smtp-relay.brevo.com",
464
464
  "port": 587
465
465
  },
466
+ "Sendora": {
467
+ "description": "Sendora",
468
+ "host": "smtp.sendora.se",
469
+ "port": 465,
470
+ "secure": true
471
+ },
466
472
  "SendPulse": {
467
473
  "description": "SendPulse",
468
474
  "host": "smtp-pulse.com",
@@ -24,12 +24,13 @@ function unsupportedHashAlgoError(hashAlgo) {
24
24
  */
25
25
  function sign(headers, hashAlgo, bodyHash, options) {
26
26
  options = options || {};
27
- // all listed fields from RFC4871 #5.5
27
+ // all listed fields from RFC4871 #5.5, plus List-Unsubscribe-Post: RFC 8058 only allows
28
+ // one-click unsubscribe when the signature covers it next to List-Unsubscribe
28
29
  const defaultFieldNames = 'From:Sender:Reply-To:Subject:Date:Message-ID:To:' +
29
30
  'Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:' +
30
31
  'Content-Description:Resent-Date:Resent-From:Resent-Sender:' +
31
32
  'Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:' +
32
- 'List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:' +
33
+ 'List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post:List-Subscribe:List-Post:' +
33
34
  'List-Owner:List-Archive:OTP-Token';
34
35
  const fieldNames = options.headerFieldNames || defaultFieldNames;
35
36
  const canonicalizedHeaderData = relaxedHeaders(headers, fieldNames, options.skipFields);
@@ -71,7 +71,9 @@ declare class Cookies {
71
71
  */
72
72
  add(cookie: Cookie): boolean;
73
73
  /**
74
- * Checks if two cookie objects are the same
74
+ * Checks if two cookie objects are the same cookie. A cookie is identified by its
75
+ * name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
76
+ * attributes of the stored cookie that an update replaces
75
77
  *
76
78
  * @param a Cookie to check against
77
79
  * @param b Cookie to check against
@@ -51,6 +51,10 @@ class Cookies {
51
51
  if (!cookie.expires) {
52
52
  cookie.expires = new Date(Date.now() + (Number(this.options.sessionTimeout || SESSION_TIMEOUT) || SESSION_TIMEOUT) * 1000);
53
53
  }
54
+ // a non-secure url can not set a Secure cookie, nor overwrite or delete one (RFC 6265bis section 5.7)
55
+ if (urlparts.protocol !== 'https:' && (cookie.secure || this.cookies.some(stored => stored.secure && this.compare(stored, cookie)))) {
56
+ return false;
57
+ }
54
58
  return this.add(cookie);
55
59
  }
56
60
  /**
@@ -209,14 +213,16 @@ class Cookies {
209
213
  return true;
210
214
  }
211
215
  /**
212
- * Checks if two cookie objects are the same
216
+ * Checks if two cookie objects are the same cookie. A cookie is identified by its
217
+ * name, domain and path (RFC 6265 section 5.3), the Secure and HttpOnly flags are
218
+ * attributes of the stored cookie that an update replaces
213
219
  *
214
220
  * @param a Cookie to check against
215
221
  * @param b Cookie to check against
216
222
  * @returns True, if the cookies are the same
217
223
  */
218
224
  compare(a, b) {
219
- return a.name === b.name && a.path === b.path && a.domain === b.domain && a.secure === b.secure && a.httponly === b.httponly;
225
+ return a.name === b.name && a.path === b.path && a.domain === b.domain;
220
226
  }
221
227
  /**
222
228
  * Checks if a cookie is expired
@@ -1,3 +1,3 @@
1
1
  export declare const name = "nodemailer";
2
- export declare const version = "10.6.0";
2
+ export declare const version = "10.6.1";
3
3
  export declare const homepage = "https://nodemailer.com/";
@@ -1,4 +1,4 @@
1
1
  // Generated by scripts/build.js from package.json. Do not edit by hand.
2
2
  export const name = 'nodemailer';
3
- export const version = '10.6.0';
3
+ export const version = '10.6.1';
4
4
  export const homepage = 'https://nodemailer.com/';
@@ -460,6 +460,12 @@ export const services = {
460
460
  "host": "smtp-relay.brevo.com",
461
461
  "port": 587
462
462
  },
463
+ "Sendora": {
464
+ "description": "Sendora",
465
+ "host": "smtp.sendora.se",
466
+ "port": 465,
467
+ "secure": true
468
+ },
463
469
  "SendPulse": {
464
470
  "description": "SendPulse",
465
471
  "host": "smtp-pulse.com",
@@ -423,6 +423,13 @@
423
423
  "port": 587
424
424
  },
425
425
 
426
+ "Sendora": {
427
+ "description": "Sendora",
428
+ "host": "smtp.sendora.se",
429
+ "port": 465,
430
+ "secure": true
431
+ },
432
+
426
433
  "SendPulse": {
427
434
  "description": "SendPulse",
428
435
  "host": "smtp-pulse.com",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodemailer",
3
- "version": "10.6.0",
3
+ "version": "10.6.1",
4
4
  "description": "Easy as cake e-mail sending from your Node.js applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/nodemailer.js",
@@ -154,7 +154,7 @@
154
154
  },
155
155
  "homepage": "https://nodemailer.com/",
156
156
  "devDependencies": {
157
- "@aws-sdk/client-sesv2": "3.1169.0",
157
+ "@aws-sdk/client-sesv2": "3.1173.0",
158
158
  "@types/node": "20.19.43",
159
159
  "bunyan": "1.8.15",
160
160
  "c8": "12.0.0",
@@ -162,16 +162,16 @@
162
162
  "eslint-config-prettier": "10.1.8",
163
163
  "globals": "17.14.0",
164
164
  "libbase64": "1.4.1",
165
- "libmime": "5.6.4",
166
- "libqp": "3.0.1",
167
- "mailauth": "8.0.6",
165
+ "libmime": "5.6.5",
166
+ "libqp": "3.0.2",
167
+ "mailauth": "8.1.0",
168
168
  "prettier": "3.10.1",
169
169
  "proxy": "1.0.2",
170
170
  "proxy-test-server": "1.0.0",
171
- "smtp-server": "3.21.4",
171
+ "smtp-server": "3.21.6",
172
172
  "tsx": "4.23.15",
173
173
  "typescript": "6.0.3",
174
- "typescript-eslint": "8.72.2"
174
+ "typescript-eslint": "8.73.0"
175
175
  },
176
176
  "engines": {
177
177
  "node": ">=20.0.0"
package/package.json CHANGED
@@ -79,15 +79,15 @@
79
79
  "constructs": "^10.5.1"
80
80
  },
81
81
  "dependencies": {
82
- "@aws-sdk/client-cloudwatch-logs": "^3.1172.0",
83
- "@aws-sdk/client-route-53": "^3.1172.0",
84
- "@aws-sdk/client-s3": "^3.1172.0",
85
- "@aws-sdk/client-ses": "^3.1172.0",
86
- "@aws-sdk/client-ssm": "^3.1172.0",
82
+ "@aws-sdk/client-cloudwatch-logs": "^3.1175.0",
83
+ "@aws-sdk/client-route-53": "^3.1175.0",
84
+ "@aws-sdk/client-s3": "^3.1175.0",
85
+ "@aws-sdk/client-ses": "^3.1175.0",
86
+ "@aws-sdk/client-ssm": "^3.1175.0",
87
87
  "@mavogel/mvc-projen": "^0.0.79",
88
88
  "cdk-nag": "^3.0.1",
89
89
  "constructs": "^10.5.1",
90
- "mailparser": "^3.14.5",
90
+ "mailparser": "^3.15.0",
91
91
  "uuid": "^14.0.3"
92
92
  },
93
93
  "bundledDependencies": [
@@ -122,7 +122,7 @@
122
122
  "publishConfig": {
123
123
  "access": "public"
124
124
  },
125
- "version": "0.1.55",
125
+ "version": "0.1.57",
126
126
  "jest": {
127
127
  "coverageProvider": "v8",
128
128
  "transformIgnorePatterns": [