@mavogel/awscdk-rootmail 0.0.40 → 0.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +9 -9
- package/lib/rootmail.js +1 -1
- package/lib/ses-receive.js +1 -1
- package/node_modules/@aws-sdk/client-cloudwatch-logs/package.json +2 -3
- package/node_modules/@aws-sdk/client-route-53/package.json +2 -3
- package/node_modules/@aws-sdk/client-s3/package.json +2 -3
- package/node_modules/@aws-sdk/client-ses/package.json +2 -3
- package/node_modules/@aws-sdk/client-ssm/package.json +2 -3
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +2 -3
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +2 -2
- package/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +1 -1
- package/node_modules/@aws-sdk/credential-provider-node/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/package.json +2 -2
- package/node_modules/cdk-nag/.jsii +2 -2
- package/node_modules/cdk-nag/lib/ignore-suppression-conditions.js +5 -5
- package/node_modules/cdk-nag/lib/nag-logger.js +2 -2
- package/node_modules/cdk-nag/lib/nag-pack.js +1 -1
- package/node_modules/cdk-nag/lib/nag-rules.js +1 -1
- package/node_modules/cdk-nag/lib/nag-suppressions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/aws-solutions.js +1 -1
- package/node_modules/cdk-nag/lib/packs/hipaa-security.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r4.js +1 -1
- package/node_modules/cdk-nag/lib/packs/nist-800-53-r5.js +1 -1
- package/node_modules/cdk-nag/lib/packs/pci-dss-321.js +1 -1
- package/node_modules/cdk-nag/package.json +2 -2
- package/node_modules/encoding-japanese/README.md +449 -212
- package/node_modules/encoding-japanese/encoding.js +2 -2
- package/node_modules/encoding-japanese/encoding.min.js +2 -3
- package/node_modules/encoding-japanese/package.json +7 -8
- package/node_modules/libmime/.ncurc.js +3 -1
- package/node_modules/libmime/CHANGELOG.md +7 -0
- package/node_modules/libmime/lib/get-charset-name.js +227 -0
- package/node_modules/libmime/package.json +3 -3
- package/node_modules/mailparser/.ncurc.js +8 -0
- package/node_modules/mailparser/CHANGELOG.md +7 -0
- package/node_modules/mailparser/lib/mail-parser.js +1 -1
- package/node_modules/mailparser/package.json +7 -7
- package/node_modules/mailsplit/node_modules/encoding-japanese/LICENSE +21 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/README.md +542 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/encoding.js +6077 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/encoding.min.js +8 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/package.json +70 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/banner.js +6 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/config.js +139 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/encoding-convert.js +1676 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/encoding-detect.js +502 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/encoding-table.js +4 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/index.js +593 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/jis-to-utf8-table.js +5 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/jisx0212-to-utf8-table.js +5 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/kana-case-table.js +41 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/utf8-to-jis-table.js +1493 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/utf8-to-jisx0212-table.js +1224 -0
- package/node_modules/mailsplit/node_modules/encoding-japanese/src/util.js +361 -0
- package/node_modules/nodemailer/CHANGELOG.md +14 -0
- package/node_modules/nodemailer/lib/mime-node/index.js +1 -1
- package/node_modules/nodemailer/lib/smtp-connection/index.js +13 -0
- package/node_modules/nodemailer/package.json +3 -3
- package/node_modules/{punycode → punycode.js}/package.json +1 -1
- package/node_modules/tlds/index.json +0 -2
- package/node_modules/tlds/package.json +1 -1
- package/package.json +9 -9
- /package/node_modules/{encoding-japanese → mailsplit/node_modules/encoding-japanese}/CHANGELOG.md +0 -0
- /package/node_modules/{encoding-japanese → mailsplit/node_modules/encoding-japanese}/encoding.min.js.map +0 -0
- /package/node_modules/{punycode → punycode.js}/LICENSE-MIT.txt +0 -0
- /package/node_modules/{punycode → punycode.js}/README.md +0 -0
- /package/node_modules/{punycode → punycode.js}/punycode.es6.js +0 -0
- /package/node_modules/{punycode → punycode.js}/punycode.js +0 -0
|
@@ -0,0 +1,361 @@
|
|
|
1
|
+
var config = require('./config');
|
|
2
|
+
var fromCharCode = String.fromCharCode;
|
|
3
|
+
var slice = Array.prototype.slice;
|
|
4
|
+
var toString = Object.prototype.toString;
|
|
5
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
6
|
+
var nativeIsArray = Array.isArray;
|
|
7
|
+
var nativeObjectKeys = Object.keys;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
function isObject(x) {
|
|
11
|
+
var type = typeof x;
|
|
12
|
+
return type === 'function' || type === 'object' && !!x;
|
|
13
|
+
}
|
|
14
|
+
exports.isObject = isObject;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
function isArray(x) {
|
|
18
|
+
return nativeIsArray ? nativeIsArray(x) : toString.call(x) === '[object Array]';
|
|
19
|
+
}
|
|
20
|
+
exports.isArray = isArray;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
function isString(x) {
|
|
24
|
+
return typeof x === 'string' || toString.call(x) === '[object String]';
|
|
25
|
+
}
|
|
26
|
+
exports.isString = isString;
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function objectKeys(object) {
|
|
30
|
+
if (nativeObjectKeys) {
|
|
31
|
+
return nativeObjectKeys(object);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var keys = [];
|
|
35
|
+
for (var key in object) {
|
|
36
|
+
if (hasOwnProperty.call(object, key)) {
|
|
37
|
+
keys[keys.length] = key;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return keys;
|
|
42
|
+
}
|
|
43
|
+
exports.objectKeys = objectKeys;
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
function createBuffer(bits, size) {
|
|
47
|
+
if (config.HAS_TYPED) {
|
|
48
|
+
switch (bits) {
|
|
49
|
+
case 8: return new Uint8Array(size);
|
|
50
|
+
case 16: return new Uint16Array(size);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return new Array(size);
|
|
54
|
+
}
|
|
55
|
+
exports.createBuffer = createBuffer;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
function stringToBuffer(string) {
|
|
59
|
+
var length = string.length;
|
|
60
|
+
var buffer = createBuffer(16, length);
|
|
61
|
+
|
|
62
|
+
for (var i = 0; i < length; i++) {
|
|
63
|
+
buffer[i] = string.charCodeAt(i);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
return buffer;
|
|
67
|
+
}
|
|
68
|
+
exports.stringToBuffer = stringToBuffer;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
function codeToString_fast(code) {
|
|
72
|
+
if (config.CAN_CHARCODE_APPLY && config.CAN_CHARCODE_APPLY_TYPED) {
|
|
73
|
+
var len = code && code.length;
|
|
74
|
+
if (len < config.APPLY_BUFFER_SIZE && config.APPLY_BUFFER_SIZE_OK) {
|
|
75
|
+
return fromCharCode.apply(null, code);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (config.APPLY_BUFFER_SIZE_OK === null) {
|
|
79
|
+
try {
|
|
80
|
+
var s = fromCharCode.apply(null, code);
|
|
81
|
+
if (len > config.APPLY_BUFFER_SIZE) {
|
|
82
|
+
config.APPLY_BUFFER_SIZE_OK = true;
|
|
83
|
+
}
|
|
84
|
+
return s;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
// Ignore the RangeError "arguments too large"
|
|
87
|
+
config.APPLY_BUFFER_SIZE_OK = false;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
return codeToString_chunked(code);
|
|
93
|
+
}
|
|
94
|
+
exports.codeToString_fast = codeToString_fast;
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
function codeToString_chunked(code) {
|
|
98
|
+
var string = '';
|
|
99
|
+
var length = code && code.length;
|
|
100
|
+
var i = 0;
|
|
101
|
+
var sub;
|
|
102
|
+
|
|
103
|
+
while (i < length) {
|
|
104
|
+
if (code.subarray) {
|
|
105
|
+
sub = code.subarray(i, i + config.APPLY_BUFFER_SIZE);
|
|
106
|
+
} else {
|
|
107
|
+
sub = code.slice(i, i + config.APPLY_BUFFER_SIZE);
|
|
108
|
+
}
|
|
109
|
+
i += config.APPLY_BUFFER_SIZE;
|
|
110
|
+
|
|
111
|
+
if (config.APPLY_BUFFER_SIZE_OK) {
|
|
112
|
+
string += fromCharCode.apply(null, sub);
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (config.APPLY_BUFFER_SIZE_OK === null) {
|
|
117
|
+
try {
|
|
118
|
+
string += fromCharCode.apply(null, sub);
|
|
119
|
+
if (sub.length > config.APPLY_BUFFER_SIZE) {
|
|
120
|
+
config.APPLY_BUFFER_SIZE_OK = true;
|
|
121
|
+
}
|
|
122
|
+
continue;
|
|
123
|
+
} catch (e) {
|
|
124
|
+
config.APPLY_BUFFER_SIZE_OK = false;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return codeToString_slow(code);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return string;
|
|
132
|
+
}
|
|
133
|
+
exports.codeToString_chunked = codeToString_chunked;
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
function codeToString_slow(code) {
|
|
137
|
+
var string = '';
|
|
138
|
+
var length = code && code.length;
|
|
139
|
+
|
|
140
|
+
for (var i = 0; i < length; i++) {
|
|
141
|
+
string += fromCharCode(code[i]);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return string;
|
|
145
|
+
}
|
|
146
|
+
exports.codeToString_slow = codeToString_slow;
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
function stringToCode(string) {
|
|
150
|
+
var code = [];
|
|
151
|
+
var len = string && string.length;
|
|
152
|
+
|
|
153
|
+
for (var i = 0; i < len; i++) {
|
|
154
|
+
code[i] = string.charCodeAt(i);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
return code;
|
|
158
|
+
}
|
|
159
|
+
exports.stringToCode = stringToCode;
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
function codeToBuffer(code) {
|
|
163
|
+
if (config.HAS_TYPED) {
|
|
164
|
+
// Unicode code point (charCodeAt range) values have a range of 0-0xFFFF, so use Uint16Array
|
|
165
|
+
return new Uint16Array(code);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
if (isArray(code)) {
|
|
169
|
+
return code;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
var length = code && code.length;
|
|
173
|
+
var buffer = [];
|
|
174
|
+
|
|
175
|
+
for (var i = 0; i < length; i++) {
|
|
176
|
+
buffer[i] = code[i];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return buffer;
|
|
180
|
+
}
|
|
181
|
+
exports.codeToBuffer = codeToBuffer;
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
function bufferToCode(buffer) {
|
|
185
|
+
if (isArray(buffer)) {
|
|
186
|
+
return buffer;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
return slice.call(buffer);
|
|
190
|
+
}
|
|
191
|
+
exports.bufferToCode = bufferToCode;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Canonicalize the passed encoding name to the internal encoding name
|
|
195
|
+
*/
|
|
196
|
+
function canonicalizeEncodingName(target) {
|
|
197
|
+
var name = '';
|
|
198
|
+
var expect = ('' + target).toUpperCase().replace(/[^A-Z0-9]+/g, '');
|
|
199
|
+
var aliasNames = objectKeys(config.EncodingAliases);
|
|
200
|
+
var len = aliasNames.length;
|
|
201
|
+
var hit = 0;
|
|
202
|
+
var encoding, encodingLen, j;
|
|
203
|
+
|
|
204
|
+
for (var i = 0; i < len; i++) {
|
|
205
|
+
encoding = aliasNames[i];
|
|
206
|
+
if (encoding === expect) {
|
|
207
|
+
name = encoding;
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
encodingLen = encoding.length;
|
|
212
|
+
for (j = hit; j < encodingLen; j++) {
|
|
213
|
+
if (encoding.slice(0, j) === expect.slice(0, j) ||
|
|
214
|
+
encoding.slice(-j) === expect.slice(-j)) {
|
|
215
|
+
name = encoding;
|
|
216
|
+
hit = j;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (hasOwnProperty.call(config.EncodingAliases, name)) {
|
|
222
|
+
return config.EncodingAliases[name];
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return name;
|
|
226
|
+
}
|
|
227
|
+
exports.canonicalizeEncodingName = canonicalizeEncodingName;
|
|
228
|
+
|
|
229
|
+
// Base64
|
|
230
|
+
/* Copyright (C) 1999 Masanao Izumo <iz@onicos.co.jp>
|
|
231
|
+
* Version: 1.0
|
|
232
|
+
* LastModified: Dec 25 1999
|
|
233
|
+
* This library is free. You can redistribute it and/or modify it.
|
|
234
|
+
*/
|
|
235
|
+
// -- Masanao Izumo Copyright 1999 "free"
|
|
236
|
+
// Added binary array support for the Encoding.js
|
|
237
|
+
|
|
238
|
+
var base64EncodeChars = [
|
|
239
|
+
65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
|
|
240
|
+
78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90,
|
|
241
|
+
97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
|
|
242
|
+
110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
|
|
243
|
+
48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 43, 47
|
|
244
|
+
];
|
|
245
|
+
|
|
246
|
+
var base64DecodeChars = [
|
|
247
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
248
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
249
|
+
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63,
|
|
250
|
+
52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1,
|
|
251
|
+
-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
252
|
+
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1,
|
|
253
|
+
-1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
|
|
254
|
+
41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1
|
|
255
|
+
];
|
|
256
|
+
|
|
257
|
+
var base64EncodePadding = '='.charCodeAt(0);
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
function base64encode(data) {
|
|
261
|
+
var out, i, len;
|
|
262
|
+
var c1, c2, c3;
|
|
263
|
+
|
|
264
|
+
len = data && data.length;
|
|
265
|
+
i = 0;
|
|
266
|
+
out = [];
|
|
267
|
+
|
|
268
|
+
while (i < len) {
|
|
269
|
+
c1 = data[i++];
|
|
270
|
+
if (i == len) {
|
|
271
|
+
out[out.length] = base64EncodeChars[c1 >> 2];
|
|
272
|
+
out[out.length] = base64EncodeChars[(c1 & 0x3) << 4];
|
|
273
|
+
out[out.length] = base64EncodePadding;
|
|
274
|
+
out[out.length] = base64EncodePadding;
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
c2 = data[i++];
|
|
279
|
+
if (i == len) {
|
|
280
|
+
out[out.length] = base64EncodeChars[c1 >> 2];
|
|
281
|
+
out[out.length] = base64EncodeChars[((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4)];
|
|
282
|
+
out[out.length] = base64EncodeChars[(c2 & 0xF) << 2];
|
|
283
|
+
out[out.length] = base64EncodePadding;
|
|
284
|
+
break;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
c3 = data[i++];
|
|
288
|
+
out[out.length] = base64EncodeChars[c1 >> 2];
|
|
289
|
+
out[out.length] = base64EncodeChars[((c1 & 0x3) << 4) | ((c2 & 0xF0) >> 4)];
|
|
290
|
+
out[out.length] = base64EncodeChars[((c2 & 0xF) << 2) | ((c3 & 0xC0) >> 6)];
|
|
291
|
+
out[out.length] = base64EncodeChars[c3 & 0x3F];
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
return codeToString_fast(out);
|
|
295
|
+
}
|
|
296
|
+
exports.base64encode = base64encode;
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
function base64decode(str) {
|
|
300
|
+
var c1, c2, c3, c4;
|
|
301
|
+
var i, len, out;
|
|
302
|
+
|
|
303
|
+
len = str && str.length;
|
|
304
|
+
i = 0;
|
|
305
|
+
out = [];
|
|
306
|
+
|
|
307
|
+
while (i < len) {
|
|
308
|
+
/* c1 */
|
|
309
|
+
do {
|
|
310
|
+
c1 = base64DecodeChars[str.charCodeAt(i++) & 0xFF];
|
|
311
|
+
} while (i < len && c1 == -1);
|
|
312
|
+
|
|
313
|
+
if (c1 == -1) {
|
|
314
|
+
break;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/* c2 */
|
|
318
|
+
do {
|
|
319
|
+
c2 = base64DecodeChars[str.charCodeAt(i++) & 0xFF];
|
|
320
|
+
} while (i < len && c2 == -1);
|
|
321
|
+
|
|
322
|
+
if (c2 == -1) {
|
|
323
|
+
break;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
out[out.length] = (c1 << 2) | ((c2 & 0x30) >> 4);
|
|
327
|
+
|
|
328
|
+
/* c3 */
|
|
329
|
+
do {
|
|
330
|
+
c3 = str.charCodeAt(i++) & 0xFF;
|
|
331
|
+
if (c3 == 61) {
|
|
332
|
+
return out;
|
|
333
|
+
}
|
|
334
|
+
c3 = base64DecodeChars[c3];
|
|
335
|
+
} while (i < len && c3 == -1);
|
|
336
|
+
|
|
337
|
+
if (c3 == -1) {
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
out[out.length] = ((c2 & 0xF) << 4) | ((c3 & 0x3C) >> 2);
|
|
342
|
+
|
|
343
|
+
/* c4 */
|
|
344
|
+
do {
|
|
345
|
+
c4 = str.charCodeAt(i++) & 0xFF;
|
|
346
|
+
if (c4 == 61) {
|
|
347
|
+
return out;
|
|
348
|
+
}
|
|
349
|
+
c4 = base64DecodeChars[c4];
|
|
350
|
+
} while (i < len && c4 == -1);
|
|
351
|
+
|
|
352
|
+
if (c4 == -1) {
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
out[out.length] = ((c3 & 0x03) << 6) | c4;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
return out;
|
|
360
|
+
}
|
|
361
|
+
exports.base64decode = base64decode;
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [6.9.13](https://github.com/nodemailer/nodemailer/compare/v6.9.12...v6.9.13) (2024-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **tls:** Ensure servername for SMTP ([d66fdd3](https://github.com/nodemailer/nodemailer/commit/d66fdd3dccacc4bc79d697fe9009204cc8d4bde0))
|
|
9
|
+
|
|
10
|
+
## [6.9.12](https://github.com/nodemailer/nodemailer/compare/v6.9.11...v6.9.12) (2024-03-08)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* **message-generation:** Escape single quote in address names ([4ae5fad](https://github.com/nodemailer/nodemailer/commit/4ae5fadeaac70ba91abf529fcaae65f829a39101))
|
|
16
|
+
|
|
3
17
|
## [6.9.11](https://github.com/nodemailer/nodemailer/compare/v6.9.10...v6.9.11) (2024-02-29)
|
|
4
18
|
|
|
5
19
|
|
|
@@ -1242,7 +1242,7 @@ class MimeNode {
|
|
|
1242
1242
|
* @returns {String} Mime word encoded string if needed
|
|
1243
1243
|
*/
|
|
1244
1244
|
_encodeAddressName(name) {
|
|
1245
|
-
if (!/^[\w
|
|
1245
|
+
if (!/^[\w ]*$/.test(name)) {
|
|
1246
1246
|
if (/^[\x20-\x7e]*$/.test(name)) {
|
|
1247
1247
|
return '"' + name.replace(/([\\"])/g, '\\$1') + '"';
|
|
1248
1248
|
} else {
|
|
@@ -58,6 +58,8 @@ class SMTPConnection extends EventEmitter {
|
|
|
58
58
|
this.port = Number(this.options.port) || (this.secureConnection ? 465 : 587);
|
|
59
59
|
this.host = this.options.host || 'localhost';
|
|
60
60
|
|
|
61
|
+
this.servername = this.options.servername ? this.options.servername : !net.isIP(this.host) ? this.host : false;
|
|
62
|
+
|
|
61
63
|
this.allowInternalNetworkInterfaces = this.options.allowInternalNetworkInterfaces || false;
|
|
62
64
|
|
|
63
65
|
if (typeof this.options.secure === 'undefined' && this.port === 465) {
|
|
@@ -296,6 +298,12 @@ class SMTPConnection extends EventEmitter {
|
|
|
296
298
|
opts[key] = this.options.tls[key];
|
|
297
299
|
});
|
|
298
300
|
}
|
|
301
|
+
|
|
302
|
+
// ensure servername for SNI
|
|
303
|
+
if (this.servername && !opts.servername) {
|
|
304
|
+
opts.servername = this.servername;
|
|
305
|
+
}
|
|
306
|
+
|
|
299
307
|
return shared.resolveHostname(opts, (err, resolved) => {
|
|
300
308
|
if (err) {
|
|
301
309
|
return setImmediate(() => this._onError(err, 'EDNS', false, 'CONN'));
|
|
@@ -904,6 +912,11 @@ class SMTPConnection extends EventEmitter {
|
|
|
904
912
|
opts[key] = this.options.tls[key];
|
|
905
913
|
});
|
|
906
914
|
|
|
915
|
+
// ensure servername for SNI
|
|
916
|
+
if (this.servername && !opts.servername) {
|
|
917
|
+
opts.servername = this.servername;
|
|
918
|
+
}
|
|
919
|
+
|
|
907
920
|
this.upgrading = true;
|
|
908
921
|
// tls.connect is not an asynchronous function however it may still throw errors and requires to be wrapped with try/catch
|
|
909
922
|
try {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodemailer",
|
|
3
|
-
"version": "6.9.
|
|
3
|
+
"version": "6.9.13",
|
|
4
4
|
"description": "Easy as cake e-mail sending from your Node.js applications",
|
|
5
5
|
"main": "lib/nodemailer.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://nodemailer.com/",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@aws-sdk/client-ses": "3.
|
|
26
|
+
"@aws-sdk/client-ses": "3.529.1",
|
|
27
27
|
"bunyan": "1.8.15",
|
|
28
28
|
"c8": "9.1.0",
|
|
29
29
|
"eslint": "8.57.0",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"nodemailer-ntlm-auth": "1.0.4",
|
|
36
36
|
"proxy": "1.0.2",
|
|
37
37
|
"proxy-test-server": "1.0.0",
|
|
38
|
-
"smtp-server": "3.13.
|
|
38
|
+
"smtp-server": "3.13.3"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=6.0.0"
|
package/package.json
CHANGED
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"jsii-pacmak": "^1.97.0",
|
|
70
70
|
"jsii-rosetta": "~5.3.0",
|
|
71
71
|
"jsonfile": "^6.1.0",
|
|
72
|
-
"projen": "^0.81.
|
|
72
|
+
"projen": "^0.81.2",
|
|
73
73
|
"standard-version": "^9",
|
|
74
74
|
"ts-jest": "^29.1.2",
|
|
75
75
|
"ts-node": "^10.9.2",
|
|
@@ -80,15 +80,15 @@
|
|
|
80
80
|
"constructs": "^10.0.5"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@aws-sdk/client-cloudwatch-logs": "^3.
|
|
84
|
-
"@aws-sdk/client-route-53": "^3.
|
|
85
|
-
"@aws-sdk/client-s3": "^3.
|
|
86
|
-
"@aws-sdk/client-ses": "^3.
|
|
87
|
-
"@aws-sdk/client-ssm": "^3.
|
|
83
|
+
"@aws-sdk/client-cloudwatch-logs": "^3.564.0",
|
|
84
|
+
"@aws-sdk/client-route-53": "^3.564.0",
|
|
85
|
+
"@aws-sdk/client-s3": "^3.564.0",
|
|
86
|
+
"@aws-sdk/client-ses": "^3.564.0",
|
|
87
|
+
"@aws-sdk/client-ssm": "^3.564.0",
|
|
88
88
|
"async-retry": "^1.3.3",
|
|
89
89
|
"axios": "^1.6.8",
|
|
90
|
-
"cdk-nag": "^2.28.
|
|
91
|
-
"mailparser": "^3.7.
|
|
90
|
+
"cdk-nag": "^2.28.101",
|
|
91
|
+
"mailparser": "^3.7.1",
|
|
92
92
|
"uuid": "^9.0.1"
|
|
93
93
|
},
|
|
94
94
|
"bundledDependencies": [
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"publishConfig": {
|
|
116
116
|
"access": "public"
|
|
117
117
|
},
|
|
118
|
-
"version": "0.0.
|
|
118
|
+
"version": "0.0.42",
|
|
119
119
|
"jest": {
|
|
120
120
|
"testMatch": [
|
|
121
121
|
"<rootDir>/src/**/__tests__/**/*.ts?(x)",
|
/package/node_modules/{encoding-japanese → mailsplit/node_modules/encoding-japanese}/CHANGELOG.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|