apple-mail-mcp 2.8.7 → 2.8.9
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/build/index.js +349 -673
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -23198,9 +23198,9 @@ var require_pino = __commonJS({
|
|
|
23198
23198
|
}
|
|
23199
23199
|
});
|
|
23200
23200
|
|
|
23201
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
23201
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/logger.js
|
|
23202
23202
|
var require_logger = __commonJS({
|
|
23203
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
23203
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/logger.js"(exports, module) {
|
|
23204
23204
|
"use strict";
|
|
23205
23205
|
var logger = require_pino()();
|
|
23206
23206
|
logger.level = "trace";
|
|
@@ -23276,9 +23276,9 @@ var require_safer = __commonJS({
|
|
|
23276
23276
|
}
|
|
23277
23277
|
});
|
|
23278
23278
|
|
|
23279
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23279
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/bom-handling.js
|
|
23280
23280
|
var require_bom_handling = __commonJS({
|
|
23281
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23281
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/bom-handling.js"(exports) {
|
|
23282
23282
|
"use strict";
|
|
23283
23283
|
var BOMChar = "\uFEFF";
|
|
23284
23284
|
exports.PrependBOM = PrependBOMWrapper;
|
|
@@ -23322,9 +23322,9 @@ var require_bom_handling = __commonJS({
|
|
|
23322
23322
|
}
|
|
23323
23323
|
});
|
|
23324
23324
|
|
|
23325
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23325
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
23326
23326
|
var require_merge_exports = __commonJS({
|
|
23327
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23327
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports, module) {
|
|
23328
23328
|
"use strict";
|
|
23329
23329
|
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
23330
23330
|
function mergeModules(target, module2) {
|
|
@@ -23338,9 +23338,9 @@ var require_merge_exports = __commonJS({
|
|
|
23338
23338
|
}
|
|
23339
23339
|
});
|
|
23340
23340
|
|
|
23341
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23341
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/internal.js
|
|
23342
23342
|
var require_internal = __commonJS({
|
|
23343
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23343
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/internal.js"(exports, module) {
|
|
23344
23344
|
"use strict";
|
|
23345
23345
|
var Buffer2 = require_safer().Buffer;
|
|
23346
23346
|
module.exports = {
|
|
@@ -23519,9 +23519,9 @@ var require_internal = __commonJS({
|
|
|
23519
23519
|
}
|
|
23520
23520
|
});
|
|
23521
23521
|
|
|
23522
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23522
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf32.js
|
|
23523
23523
|
var require_utf32 = __commonJS({
|
|
23524
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23524
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf32.js"(exports) {
|
|
23525
23525
|
"use strict";
|
|
23526
23526
|
var Buffer2 = require_safer().Buffer;
|
|
23527
23527
|
exports._utf32 = Utf32Codec;
|
|
@@ -23542,7 +23542,7 @@ var require_utf32 = __commonJS({
|
|
|
23542
23542
|
}
|
|
23543
23543
|
Utf32Encoder.prototype.write = function(str2) {
|
|
23544
23544
|
var src = Buffer2.from(str2, "ucs2");
|
|
23545
|
-
var dst = Buffer2.alloc(src.length * 2);
|
|
23545
|
+
var dst = Buffer2.alloc(src.length * 2 + 4);
|
|
23546
23546
|
var write32 = this.isLE ? dst.writeUInt32LE : dst.writeUInt32BE;
|
|
23547
23547
|
var offset = 0;
|
|
23548
23548
|
for (var i = 0; i < src.length; i += 2) {
|
|
@@ -23609,9 +23609,9 @@ var require_utf32 = __commonJS({
|
|
|
23609
23609
|
}
|
|
23610
23610
|
if (overflow.length === 4) {
|
|
23611
23611
|
if (isLE) {
|
|
23612
|
-
codepoint = overflow[
|
|
23612
|
+
codepoint = overflow[0] | overflow[1] << 8 | overflow[2] << 16 | overflow[3] << 24;
|
|
23613
23613
|
} else {
|
|
23614
|
-
codepoint = overflow[
|
|
23614
|
+
codepoint = overflow[3] | overflow[2] << 8 | overflow[1] << 16 | overflow[0] << 24;
|
|
23615
23615
|
}
|
|
23616
23616
|
overflow.length = 0;
|
|
23617
23617
|
offset = _writeCodepoint(dst, offset, codepoint, badChar);
|
|
@@ -23646,7 +23646,11 @@ var require_utf32 = __commonJS({
|
|
|
23646
23646
|
return offset;
|
|
23647
23647
|
}
|
|
23648
23648
|
Utf32Decoder.prototype.end = function() {
|
|
23649
|
+
if (this.overflow.length === 0) {
|
|
23650
|
+
return;
|
|
23651
|
+
}
|
|
23649
23652
|
this.overflow.length = 0;
|
|
23653
|
+
return String.fromCharCode(this.badChar);
|
|
23650
23654
|
};
|
|
23651
23655
|
exports.utf32 = Utf32AutoCodec;
|
|
23652
23656
|
exports.ucs4 = "utf32";
|
|
@@ -23750,9 +23754,9 @@ var require_utf32 = __commonJS({
|
|
|
23750
23754
|
}
|
|
23751
23755
|
});
|
|
23752
23756
|
|
|
23753
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23757
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf16.js
|
|
23754
23758
|
var require_utf16 = __commonJS({
|
|
23755
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23759
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf16.js"(exports) {
|
|
23756
23760
|
"use strict";
|
|
23757
23761
|
var Buffer2 = require_safer().Buffer;
|
|
23758
23762
|
exports.utf16be = Utf16BECodec;
|
|
@@ -23893,9 +23897,9 @@ var require_utf16 = __commonJS({
|
|
|
23893
23897
|
}
|
|
23894
23898
|
});
|
|
23895
23899
|
|
|
23896
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
23900
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf7.js
|
|
23897
23901
|
var require_utf7 = __commonJS({
|
|
23898
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
23902
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/utf7.js"(exports) {
|
|
23899
23903
|
"use strict";
|
|
23900
23904
|
var Buffer2 = require_safer().Buffer;
|
|
23901
23905
|
exports.utf7 = Utf7Codec;
|
|
@@ -24111,9 +24115,9 @@ var require_utf7 = __commonJS({
|
|
|
24111
24115
|
}
|
|
24112
24116
|
});
|
|
24113
24117
|
|
|
24114
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
24118
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
24115
24119
|
var require_sbcs_codec = __commonJS({
|
|
24116
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
24120
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports) {
|
|
24117
24121
|
"use strict";
|
|
24118
24122
|
var Buffer2 = require_safer().Buffer;
|
|
24119
24123
|
exports._sbcs = SBCSCodec;
|
|
@@ -24173,9 +24177,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
24173
24177
|
}
|
|
24174
24178
|
});
|
|
24175
24179
|
|
|
24176
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
24180
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
24177
24181
|
var require_sbcs_data = __commonJS({
|
|
24178
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
24182
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data.js"(exports, module) {
|
|
24179
24183
|
"use strict";
|
|
24180
24184
|
module.exports = {
|
|
24181
24185
|
// Not supported by iconv, not sure why.
|
|
@@ -24271,6 +24275,8 @@ var require_sbcs_data = __commonJS({
|
|
|
24271
24275
|
elot928: "iso88597",
|
|
24272
24276
|
hebrew: "iso88598",
|
|
24273
24277
|
hebrew8: "iso88598",
|
|
24278
|
+
iso88598i: "iso88598",
|
|
24279
|
+
iso88598e: "iso88598",
|
|
24274
24280
|
turkish: "iso88599",
|
|
24275
24281
|
turkish8: "iso88599",
|
|
24276
24282
|
thai: "iso885911",
|
|
@@ -24326,9 +24332,9 @@ var require_sbcs_data = __commonJS({
|
|
|
24326
24332
|
}
|
|
24327
24333
|
});
|
|
24328
24334
|
|
|
24329
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
24335
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
24330
24336
|
var require_sbcs_data_generated = __commonJS({
|
|
24331
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
24337
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports, module) {
|
|
24332
24338
|
"use strict";
|
|
24333
24339
|
module.exports = {
|
|
24334
24340
|
"437": "cp437",
|
|
@@ -24781,9 +24787,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
24781
24787
|
}
|
|
24782
24788
|
});
|
|
24783
24789
|
|
|
24784
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
24790
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
24785
24791
|
var require_dbcs_codec = __commonJS({
|
|
24786
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
24792
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports) {
|
|
24787
24793
|
"use strict";
|
|
24788
24794
|
var Buffer2 = require_safer().Buffer;
|
|
24789
24795
|
exports._dbcs = DBCSCodec;
|
|
@@ -25241,9 +25247,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
25241
25247
|
}
|
|
25242
25248
|
});
|
|
25243
25249
|
|
|
25244
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25250
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
25245
25251
|
var require_shiftjis = __commonJS({
|
|
25246
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25252
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports, module) {
|
|
25247
25253
|
module.exports = [
|
|
25248
25254
|
["0", "\0", 128],
|
|
25249
25255
|
["a1", "\uFF61", 62],
|
|
@@ -25372,9 +25378,9 @@ var require_shiftjis = __commonJS({
|
|
|
25372
25378
|
}
|
|
25373
25379
|
});
|
|
25374
25380
|
|
|
25375
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25381
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
25376
25382
|
var require_eucjp = __commonJS({
|
|
25377
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25383
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports, module) {
|
|
25378
25384
|
module.exports = [
|
|
25379
25385
|
["0", "\0", 127],
|
|
25380
25386
|
["8ea1", "\uFF61", 62],
|
|
@@ -25560,9 +25566,9 @@ var require_eucjp = __commonJS({
|
|
|
25560
25566
|
}
|
|
25561
25567
|
});
|
|
25562
25568
|
|
|
25563
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25569
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
25564
25570
|
var require_cp936 = __commonJS({
|
|
25565
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25571
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp936.json"(exports, module) {
|
|
25566
25572
|
module.exports = [
|
|
25567
25573
|
["0", "\0", 127, "\u20AC"],
|
|
25568
25574
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -25830,9 +25836,9 @@ var require_cp936 = __commonJS({
|
|
|
25830
25836
|
}
|
|
25831
25837
|
});
|
|
25832
25838
|
|
|
25833
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25839
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
25834
25840
|
var require_gbk_added = __commonJS({
|
|
25835
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25841
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports, module) {
|
|
25836
25842
|
module.exports = [
|
|
25837
25843
|
["a140", "\uE4C6", 62],
|
|
25838
25844
|
["a180", "\uE505", 32],
|
|
@@ -25892,16 +25898,16 @@ var require_gbk_added = __commonJS({
|
|
|
25892
25898
|
}
|
|
25893
25899
|
});
|
|
25894
25900
|
|
|
25895
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25901
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
25896
25902
|
var require_gb18030_ranges = __commonJS({
|
|
25897
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25903
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports, module) {
|
|
25898
25904
|
module.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
25899
25905
|
}
|
|
25900
25906
|
});
|
|
25901
25907
|
|
|
25902
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
25908
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
25903
25909
|
var require_cp949 = __commonJS({
|
|
25904
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
25910
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp949.json"(exports, module) {
|
|
25905
25911
|
module.exports = [
|
|
25906
25912
|
["0", "\0", 127],
|
|
25907
25913
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -26178,9 +26184,9 @@ var require_cp949 = __commonJS({
|
|
|
26178
26184
|
}
|
|
26179
26185
|
});
|
|
26180
26186
|
|
|
26181
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26187
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
26182
26188
|
var require_cp950 = __commonJS({
|
|
26183
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26189
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/cp950.json"(exports, module) {
|
|
26184
26190
|
module.exports = [
|
|
26185
26191
|
["0", "\0", 127],
|
|
26186
26192
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -26361,9 +26367,9 @@ var require_cp950 = __commonJS({
|
|
|
26361
26367
|
}
|
|
26362
26368
|
});
|
|
26363
26369
|
|
|
26364
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26370
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
26365
26371
|
var require_big5_added = __commonJS({
|
|
26366
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26372
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports, module) {
|
|
26367
26373
|
module.exports = [
|
|
26368
26374
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
26369
26375
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -26489,9 +26495,9 @@ var require_big5_added = __commonJS({
|
|
|
26489
26495
|
}
|
|
26490
26496
|
});
|
|
26491
26497
|
|
|
26492
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26498
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
26493
26499
|
var require_dbcs_data = __commonJS({
|
|
26494
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26500
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/dbcs-data.js"(exports, module) {
|
|
26495
26501
|
"use strict";
|
|
26496
26502
|
module.exports = {
|
|
26497
26503
|
// == Japanese/ShiftJIS ====================================================
|
|
@@ -26736,9 +26742,9 @@ var require_dbcs_data = __commonJS({
|
|
|
26736
26742
|
}
|
|
26737
26743
|
});
|
|
26738
26744
|
|
|
26739
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26745
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/index.js
|
|
26740
26746
|
var require_encodings = __commonJS({
|
|
26741
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26747
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/encodings/index.js"(exports, module) {
|
|
26742
26748
|
"use strict";
|
|
26743
26749
|
var mergeModules = require_merge_exports();
|
|
26744
26750
|
var modules = [
|
|
@@ -26761,9 +26767,9 @@ var require_encodings = __commonJS({
|
|
|
26761
26767
|
}
|
|
26762
26768
|
});
|
|
26763
26769
|
|
|
26764
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26770
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/streams.js
|
|
26765
26771
|
var require_streams = __commonJS({
|
|
26766
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26772
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/streams.js"(exports, module) {
|
|
26767
26773
|
"use strict";
|
|
26768
26774
|
var Buffer2 = require_safer().Buffer;
|
|
26769
26775
|
module.exports = function(streamModule) {
|
|
@@ -26858,9 +26864,9 @@ var require_streams = __commonJS({
|
|
|
26858
26864
|
}
|
|
26859
26865
|
});
|
|
26860
26866
|
|
|
26861
|
-
// node_modules/.pnpm/iconv-lite@0.7.
|
|
26867
|
+
// node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/index.js
|
|
26862
26868
|
var require_lib = __commonJS({
|
|
26863
|
-
"node_modules/.pnpm/iconv-lite@0.7.
|
|
26869
|
+
"node_modules/.pnpm/iconv-lite@0.7.3/node_modules/iconv-lite/lib/index.js"(exports, module) {
|
|
26864
26870
|
"use strict";
|
|
26865
26871
|
var Buffer2 = require_safer().Buffer;
|
|
26866
26872
|
var bomHandling = require_bom_handling();
|
|
@@ -43426,9 +43432,9 @@ var require_src = __commonJS({
|
|
|
43426
43432
|
}
|
|
43427
43433
|
});
|
|
43428
43434
|
|
|
43429
|
-
// node_modules/.pnpm/libmime@5.4.
|
|
43435
|
+
// node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charsets.js
|
|
43430
43436
|
var require_charsets = __commonJS({
|
|
43431
|
-
"node_modules/.pnpm/libmime@5.4.
|
|
43437
|
+
"node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charsets.js"(exports, module) {
|
|
43432
43438
|
"use strict";
|
|
43433
43439
|
module.exports = {
|
|
43434
43440
|
"866": "IBM866",
|
|
@@ -43641,9 +43647,9 @@ var require_charsets = __commonJS({
|
|
|
43641
43647
|
}
|
|
43642
43648
|
});
|
|
43643
43649
|
|
|
43644
|
-
// node_modules/.pnpm/libmime@5.4.
|
|
43650
|
+
// node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charset.js
|
|
43645
43651
|
var require_charset = __commonJS({
|
|
43646
|
-
"node_modules/.pnpm/libmime@5.4.
|
|
43652
|
+
"node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/charset.js"(exports, module) {
|
|
43647
43653
|
"use strict";
|
|
43648
43654
|
var { Buffer: Buffer2 } = __require("node:buffer");
|
|
43649
43655
|
var iconv = require_lib();
|
|
@@ -44120,9 +44126,9 @@ var require_libqp = __commonJS({
|
|
|
44120
44126
|
}
|
|
44121
44127
|
});
|
|
44122
44128
|
|
|
44123
|
-
// node_modules/.pnpm/libmime@5.4.
|
|
44129
|
+
// node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/mimetypes.js
|
|
44124
44130
|
var require_mimetypes = __commonJS({
|
|
44125
|
-
"node_modules/.pnpm/libmime@5.4.
|
|
44131
|
+
"node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/mimetypes.js"(exports, module) {
|
|
44126
44132
|
"use strict";
|
|
44127
44133
|
module.exports = {
|
|
44128
44134
|
list: {
|
|
@@ -46171,9 +46177,9 @@ var require_mimetypes = __commonJS({
|
|
|
46171
46177
|
}
|
|
46172
46178
|
});
|
|
46173
46179
|
|
|
46174
|
-
// node_modules/.pnpm/libmime@5.4.
|
|
46180
|
+
// node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/libmime.js
|
|
46175
46181
|
var require_libmime = __commonJS({
|
|
46176
|
-
"node_modules/.pnpm/libmime@5.4.
|
|
46182
|
+
"node_modules/.pnpm/libmime@5.4.1/node_modules/libmime/lib/libmime.js"(exports, module) {
|
|
46177
46183
|
"use strict";
|
|
46178
46184
|
var { Buffer: Buffer2 } = __require("node:buffer");
|
|
46179
46185
|
var libcharset = require_charset();
|
|
@@ -46893,9 +46899,9 @@ var require_libmime = __commonJS({
|
|
|
46893
46899
|
}
|
|
46894
46900
|
});
|
|
46895
46901
|
|
|
46896
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
46902
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/headers.js
|
|
46897
46903
|
var require_headers = __commonJS({
|
|
46898
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
46904
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/headers.js"(exports, module) {
|
|
46899
46905
|
"use strict";
|
|
46900
46906
|
var libmime = require_libmime();
|
|
46901
46907
|
var Libmime = (
|
|
@@ -47199,9 +47205,9 @@ var require_headers = __commonJS({
|
|
|
47199
47205
|
}
|
|
47200
47206
|
});
|
|
47201
47207
|
|
|
47202
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47208
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/mime-node.js
|
|
47203
47209
|
var require_mime_node2 = __commonJS({
|
|
47204
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47210
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/mime-node.js"(exports, module) {
|
|
47205
47211
|
"use strict";
|
|
47206
47212
|
var Headers = require_headers();
|
|
47207
47213
|
var libmime = require_libmime();
|
|
@@ -47497,9 +47503,9 @@ var require_mime_node2 = __commonJS({
|
|
|
47497
47503
|
}
|
|
47498
47504
|
});
|
|
47499
47505
|
|
|
47500
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47506
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-splitter.js
|
|
47501
47507
|
var require_message_splitter = __commonJS({
|
|
47502
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47508
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-splitter.js"(exports, module) {
|
|
47503
47509
|
"use strict";
|
|
47504
47510
|
var Transform = __require("stream").Transform;
|
|
47505
47511
|
var MimeNode = require_mime_node2();
|
|
@@ -47890,9 +47896,9 @@ var require_message_splitter = __commonJS({
|
|
|
47890
47896
|
}
|
|
47891
47897
|
});
|
|
47892
47898
|
|
|
47893
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47899
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-joiner.js
|
|
47894
47900
|
var require_message_joiner = __commonJS({
|
|
47895
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47901
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/message-joiner.js"(exports, module) {
|
|
47896
47902
|
"use strict";
|
|
47897
47903
|
var Transform = __require("stream").Transform;
|
|
47898
47904
|
var MessageJoiner = class extends Transform {
|
|
@@ -47934,9 +47940,9 @@ var require_message_joiner = __commonJS({
|
|
|
47934
47940
|
}
|
|
47935
47941
|
});
|
|
47936
47942
|
|
|
47937
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47943
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js
|
|
47938
47944
|
var require_flowed_decoder = __commonJS({
|
|
47939
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
47945
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/flowed-decoder.js"(exports, module) {
|
|
47940
47946
|
"use strict";
|
|
47941
47947
|
var Transform = __require("stream").Transform;
|
|
47942
47948
|
var libmime = require_libmime();
|
|
@@ -47992,9 +47998,9 @@ var require_flowed_decoder = __commonJS({
|
|
|
47992
47998
|
}
|
|
47993
47999
|
});
|
|
47994
48000
|
|
|
47995
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48001
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js
|
|
47996
48002
|
var require_node_rewriter = __commonJS({
|
|
47997
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48003
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-rewriter.js"(exports, module) {
|
|
47998
48004
|
"use strict";
|
|
47999
48005
|
var Transform = __require("stream").Transform;
|
|
48000
48006
|
var FlowedDecoder = require_flowed_decoder();
|
|
@@ -48180,9 +48186,9 @@ var require_node_rewriter = __commonJS({
|
|
|
48180
48186
|
}
|
|
48181
48187
|
});
|
|
48182
48188
|
|
|
48183
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48189
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-streamer.js
|
|
48184
48190
|
var require_node_streamer = __commonJS({
|
|
48185
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48191
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/node-streamer.js"(exports, module) {
|
|
48186
48192
|
"use strict";
|
|
48187
48193
|
var Transform = __require("stream").Transform;
|
|
48188
48194
|
var FlowedDecoder = require_flowed_decoder();
|
|
@@ -48316,9 +48322,9 @@ var require_node_streamer = __commonJS({
|
|
|
48316
48322
|
}
|
|
48317
48323
|
});
|
|
48318
48324
|
|
|
48319
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48325
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js
|
|
48320
48326
|
var require_chunked_passthrough = __commonJS({
|
|
48321
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48327
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/lib/chunked-passthrough.js"(exports, module) {
|
|
48322
48328
|
"use strict";
|
|
48323
48329
|
var { Transform } = __require("stream");
|
|
48324
48330
|
var ChunkedPassthrough = class extends Transform {
|
|
@@ -48364,9 +48370,9 @@ var require_chunked_passthrough = __commonJS({
|
|
|
48364
48370
|
}
|
|
48365
48371
|
});
|
|
48366
48372
|
|
|
48367
|
-
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48373
|
+
// node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/index.js
|
|
48368
48374
|
var require_mailsplit = __commonJS({
|
|
48369
|
-
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.
|
|
48375
|
+
"node_modules/.pnpm/@zone-eu+mailsplit@5.4.14/node_modules/@zone-eu/mailsplit/index.js"(exports, module) {
|
|
48370
48376
|
"use strict";
|
|
48371
48377
|
var MessageSplitter = require_message_splitter();
|
|
48372
48378
|
var MessageJoiner = require_message_joiner();
|
|
@@ -48387,9 +48393,9 @@ var require_mailsplit = __commonJS({
|
|
|
48387
48393
|
}
|
|
48388
48394
|
});
|
|
48389
48395
|
|
|
48390
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48396
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/limited-passthrough.js
|
|
48391
48397
|
var require_limited_passthrough = __commonJS({
|
|
48392
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48398
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/limited-passthrough.js"(exports, module) {
|
|
48393
48399
|
"use strict";
|
|
48394
48400
|
var { Transform } = __require("stream");
|
|
48395
48401
|
var LimitedPassthrough = class extends Transform {
|
|
@@ -48423,9 +48429,9 @@ var require_limited_passthrough = __commonJS({
|
|
|
48423
48429
|
}
|
|
48424
48430
|
});
|
|
48425
48431
|
|
|
48426
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48432
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-stream.js
|
|
48427
48433
|
var require_imap_stream = __commonJS({
|
|
48428
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48434
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-stream.js"(exports, module) {
|
|
48429
48435
|
"use strict";
|
|
48430
48436
|
var Transform = __require("stream").Transform;
|
|
48431
48437
|
var logger = require_logger();
|
|
@@ -48703,9 +48709,9 @@ var require_imap_stream = __commonJS({
|
|
|
48703
48709
|
}
|
|
48704
48710
|
});
|
|
48705
48711
|
|
|
48706
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48712
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-formal-syntax.js
|
|
48707
48713
|
var require_imap_formal_syntax = __commonJS({
|
|
48708
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48714
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-formal-syntax.js"(exports, module) {
|
|
48709
48715
|
"use strict";
|
|
48710
48716
|
function expandRange(start, end) {
|
|
48711
48717
|
let chars = [];
|
|
@@ -48849,9 +48855,9 @@ var require_imap_formal_syntax = __commonJS({
|
|
|
48849
48855
|
}
|
|
48850
48856
|
});
|
|
48851
48857
|
|
|
48852
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
48858
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/token-parser.js
|
|
48853
48859
|
var require_token_parser = __commonJS({
|
|
48854
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
48860
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/token-parser.js"(exports, module) {
|
|
48855
48861
|
"use strict";
|
|
48856
48862
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
48857
48863
|
var STATE_ATOM = 1;
|
|
@@ -49399,9 +49405,9 @@ var require_token_parser = __commonJS({
|
|
|
49399
49405
|
}
|
|
49400
49406
|
});
|
|
49401
49407
|
|
|
49402
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49408
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/parser-instance.js
|
|
49403
49409
|
var require_parser_instance = __commonJS({
|
|
49404
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49410
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/parser-instance.js"(exports, module) {
|
|
49405
49411
|
"use strict";
|
|
49406
49412
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49407
49413
|
var { TokenParser } = require_token_parser();
|
|
@@ -49588,9 +49594,9 @@ var require_parser_instance = __commonJS({
|
|
|
49588
49594
|
}
|
|
49589
49595
|
});
|
|
49590
49596
|
|
|
49591
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49597
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-parser.js
|
|
49592
49598
|
var require_imap_parser = __commonJS({
|
|
49593
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49599
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-parser.js"(exports, module) {
|
|
49594
49600
|
"use strict";
|
|
49595
49601
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49596
49602
|
var { ParserInstance } = require_parser_instance();
|
|
@@ -49645,9 +49651,9 @@ var require_imap_parser = __commonJS({
|
|
|
49645
49651
|
}
|
|
49646
49652
|
});
|
|
49647
49653
|
|
|
49648
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49654
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-compiler.js
|
|
49649
49655
|
var require_imap_compiler = __commonJS({
|
|
49650
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49656
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-compiler.js"(exports, module) {
|
|
49651
49657
|
"use strict";
|
|
49652
49658
|
var imapFormalSyntax = require_imap_formal_syntax();
|
|
49653
49659
|
var formatRespEntry = (entry, returnEmpty) => {
|
|
@@ -49795,9 +49801,9 @@ var require_imap_compiler = __commonJS({
|
|
|
49795
49801
|
}
|
|
49796
49802
|
});
|
|
49797
49803
|
|
|
49798
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49804
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-handler.js
|
|
49799
49805
|
var require_imap_handler = __commonJS({
|
|
49800
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49806
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/handler/imap-handler.js"(exports, module) {
|
|
49801
49807
|
"use strict";
|
|
49802
49808
|
var parser = require_imap_parser();
|
|
49803
49809
|
var compiler = require_imap_compiler();
|
|
@@ -49808,12 +49814,12 @@ var require_imap_handler = __commonJS({
|
|
|
49808
49814
|
}
|
|
49809
49815
|
});
|
|
49810
49816
|
|
|
49811
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
49817
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/package.json
|
|
49812
49818
|
var require_package4 = __commonJS({
|
|
49813
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
49819
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/package.json"(exports, module) {
|
|
49814
49820
|
module.exports = {
|
|
49815
49821
|
name: "imapflow",
|
|
49816
|
-
version: "1.4.
|
|
49822
|
+
version: "1.4.6",
|
|
49817
49823
|
description: "IMAP Client for Node",
|
|
49818
49824
|
main: "lib/imap-flow.js",
|
|
49819
49825
|
types: "lib/imap-flow.d.ts",
|
|
@@ -49841,27 +49847,27 @@ var require_package4 = __commonJS({
|
|
|
49841
49847
|
homepage: "https://imapflow.com/",
|
|
49842
49848
|
devDependencies: {
|
|
49843
49849
|
"@eslint/js": "10.0.1",
|
|
49844
|
-
"@types/node": "26.0
|
|
49850
|
+
"@types/node": "26.1.0",
|
|
49845
49851
|
c8: "11.0.0",
|
|
49846
|
-
eslint: "10.
|
|
49852
|
+
eslint: "10.6.0",
|
|
49847
49853
|
"eslint-config-nodemailer": "1.2.0",
|
|
49848
49854
|
"eslint-config-prettier": "10.1.8",
|
|
49849
49855
|
grunt: "1.6.2",
|
|
49850
49856
|
"grunt-cli": "1.5.0",
|
|
49851
49857
|
"grunt-contrib-nodeunit": "5.0.0",
|
|
49852
49858
|
"grunt-eslint": "26.0.0",
|
|
49853
|
-
prettier: "3.
|
|
49859
|
+
prettier: "3.9.4",
|
|
49854
49860
|
proxyquire: "^2.1.3",
|
|
49855
49861
|
typescript: "6.0.3"
|
|
49856
49862
|
},
|
|
49857
49863
|
dependencies: {
|
|
49858
|
-
"@zone-eu/mailsplit": "5.4.
|
|
49864
|
+
"@zone-eu/mailsplit": "5.4.14",
|
|
49859
49865
|
"encoding-japanese": "2.2.0",
|
|
49860
|
-
"iconv-lite": "0.7.
|
|
49866
|
+
"iconv-lite": "0.7.3",
|
|
49861
49867
|
libbase64: "1.3.0",
|
|
49862
|
-
libmime: "5.4.
|
|
49868
|
+
libmime: "5.4.1",
|
|
49863
49869
|
libqp: "2.1.1",
|
|
49864
|
-
nodemailer: "9.0.
|
|
49870
|
+
nodemailer: "9.0.3",
|
|
49865
49871
|
pino: "10.3.1",
|
|
49866
49872
|
socks: "2.8.9"
|
|
49867
49873
|
}
|
|
@@ -49869,481 +49875,6 @@ var require_package4 = __commonJS({
|
|
|
49869
49875
|
}
|
|
49870
49876
|
});
|
|
49871
49877
|
|
|
49872
|
-
// node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/punycode/index.js
|
|
49873
|
-
var require_punycode2 = __commonJS({
|
|
49874
|
-
"node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/punycode/index.js"(exports, module) {
|
|
49875
|
-
"use strict";
|
|
49876
|
-
var maxInt = 2147483647;
|
|
49877
|
-
var base = 36;
|
|
49878
|
-
var tMin = 1;
|
|
49879
|
-
var tMax = 26;
|
|
49880
|
-
var skew = 38;
|
|
49881
|
-
var damp = 700;
|
|
49882
|
-
var initialBias = 72;
|
|
49883
|
-
var initialN = 128;
|
|
49884
|
-
var delimiter = "-";
|
|
49885
|
-
var regexPunycode = /^xn--/;
|
|
49886
|
-
var regexNonASCII = /[^\0-\x7F]/;
|
|
49887
|
-
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
|
|
49888
|
-
var errors = {
|
|
49889
|
-
overflow: "Overflow: input needs wider integers to process",
|
|
49890
|
-
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
49891
|
-
"invalid-input": "Invalid input"
|
|
49892
|
-
};
|
|
49893
|
-
var baseMinusTMin = base - tMin;
|
|
49894
|
-
var floor = Math.floor;
|
|
49895
|
-
var stringFromCharCode = String.fromCharCode;
|
|
49896
|
-
function error2(type) {
|
|
49897
|
-
throw new RangeError(errors[type]);
|
|
49898
|
-
}
|
|
49899
|
-
function map(array2, callback) {
|
|
49900
|
-
const result = [];
|
|
49901
|
-
let length = array2.length;
|
|
49902
|
-
while (length--) {
|
|
49903
|
-
result[length] = callback(array2[length]);
|
|
49904
|
-
}
|
|
49905
|
-
return result;
|
|
49906
|
-
}
|
|
49907
|
-
function mapDomain(domain, callback) {
|
|
49908
|
-
const parts = domain.split("@");
|
|
49909
|
-
let result = "";
|
|
49910
|
-
if (parts.length > 1) {
|
|
49911
|
-
result = parts[0] + "@";
|
|
49912
|
-
domain = parts[1];
|
|
49913
|
-
}
|
|
49914
|
-
domain = domain.replace(regexSeparators, ".");
|
|
49915
|
-
const labels = domain.split(".");
|
|
49916
|
-
const encoded = map(labels, callback).join(".");
|
|
49917
|
-
return result + encoded;
|
|
49918
|
-
}
|
|
49919
|
-
function ucs2decode(string3) {
|
|
49920
|
-
const output = [];
|
|
49921
|
-
let counter = 0;
|
|
49922
|
-
const length = string3.length;
|
|
49923
|
-
while (counter < length) {
|
|
49924
|
-
const value = string3.charCodeAt(counter++);
|
|
49925
|
-
if (value >= 55296 && value <= 56319 && counter < length) {
|
|
49926
|
-
const extra = string3.charCodeAt(counter++);
|
|
49927
|
-
if ((extra & 64512) == 56320) {
|
|
49928
|
-
output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
|
|
49929
|
-
} else {
|
|
49930
|
-
output.push(value);
|
|
49931
|
-
counter--;
|
|
49932
|
-
}
|
|
49933
|
-
} else {
|
|
49934
|
-
output.push(value);
|
|
49935
|
-
}
|
|
49936
|
-
}
|
|
49937
|
-
return output;
|
|
49938
|
-
}
|
|
49939
|
-
var ucs2encode = (codePoints) => String.fromCodePoint(...codePoints);
|
|
49940
|
-
var basicToDigit = function(codePoint) {
|
|
49941
|
-
if (codePoint >= 48 && codePoint < 58) {
|
|
49942
|
-
return 26 + (codePoint - 48);
|
|
49943
|
-
}
|
|
49944
|
-
if (codePoint >= 65 && codePoint < 91) {
|
|
49945
|
-
return codePoint - 65;
|
|
49946
|
-
}
|
|
49947
|
-
if (codePoint >= 97 && codePoint < 123) {
|
|
49948
|
-
return codePoint - 97;
|
|
49949
|
-
}
|
|
49950
|
-
return base;
|
|
49951
|
-
};
|
|
49952
|
-
var digitToBasic = function(digit, flag) {
|
|
49953
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
49954
|
-
};
|
|
49955
|
-
var adapt = function(delta, numPoints, firstTime) {
|
|
49956
|
-
let k = 0;
|
|
49957
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
49958
|
-
delta += floor(delta / numPoints);
|
|
49959
|
-
for (
|
|
49960
|
-
;
|
|
49961
|
-
/* no initialization */
|
|
49962
|
-
delta > baseMinusTMin * tMax >> 1;
|
|
49963
|
-
k += base
|
|
49964
|
-
) {
|
|
49965
|
-
delta = floor(delta / baseMinusTMin);
|
|
49966
|
-
}
|
|
49967
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
49968
|
-
};
|
|
49969
|
-
var decode = function(input) {
|
|
49970
|
-
const output = [];
|
|
49971
|
-
const inputLength = input.length;
|
|
49972
|
-
let i = 0;
|
|
49973
|
-
let n = initialN;
|
|
49974
|
-
let bias = initialBias;
|
|
49975
|
-
let basic = input.lastIndexOf(delimiter);
|
|
49976
|
-
if (basic < 0) {
|
|
49977
|
-
basic = 0;
|
|
49978
|
-
}
|
|
49979
|
-
for (let j = 0; j < basic; ++j) {
|
|
49980
|
-
if (input.charCodeAt(j) >= 128) {
|
|
49981
|
-
error2("not-basic");
|
|
49982
|
-
}
|
|
49983
|
-
output.push(input.charCodeAt(j));
|
|
49984
|
-
}
|
|
49985
|
-
for (let index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
|
|
49986
|
-
const oldi = i;
|
|
49987
|
-
for (let w = 1, k = base; ; k += base) {
|
|
49988
|
-
if (index >= inputLength) {
|
|
49989
|
-
error2("invalid-input");
|
|
49990
|
-
}
|
|
49991
|
-
const digit = basicToDigit(input.charCodeAt(index++));
|
|
49992
|
-
if (digit >= base) {
|
|
49993
|
-
error2("invalid-input");
|
|
49994
|
-
}
|
|
49995
|
-
if (digit > floor((maxInt - i) / w)) {
|
|
49996
|
-
error2("overflow");
|
|
49997
|
-
}
|
|
49998
|
-
i += digit * w;
|
|
49999
|
-
const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
50000
|
-
if (digit < t) {
|
|
50001
|
-
break;
|
|
50002
|
-
}
|
|
50003
|
-
const baseMinusT = base - t;
|
|
50004
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
50005
|
-
error2("overflow");
|
|
50006
|
-
}
|
|
50007
|
-
w *= baseMinusT;
|
|
50008
|
-
}
|
|
50009
|
-
const out = output.length + 1;
|
|
50010
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
50011
|
-
if (floor(i / out) > maxInt - n) {
|
|
50012
|
-
error2("overflow");
|
|
50013
|
-
}
|
|
50014
|
-
n += floor(i / out);
|
|
50015
|
-
i %= out;
|
|
50016
|
-
output.splice(i++, 0, n);
|
|
50017
|
-
}
|
|
50018
|
-
return String.fromCodePoint(...output);
|
|
50019
|
-
};
|
|
50020
|
-
var encode = function(input) {
|
|
50021
|
-
const output = [];
|
|
50022
|
-
input = ucs2decode(input);
|
|
50023
|
-
const inputLength = input.length;
|
|
50024
|
-
let n = initialN;
|
|
50025
|
-
let delta = 0;
|
|
50026
|
-
let bias = initialBias;
|
|
50027
|
-
for (const currentValue of input) {
|
|
50028
|
-
if (currentValue < 128) {
|
|
50029
|
-
output.push(stringFromCharCode(currentValue));
|
|
50030
|
-
}
|
|
50031
|
-
}
|
|
50032
|
-
const basicLength = output.length;
|
|
50033
|
-
let handledCPCount = basicLength;
|
|
50034
|
-
if (basicLength) {
|
|
50035
|
-
output.push(delimiter);
|
|
50036
|
-
}
|
|
50037
|
-
while (handledCPCount < inputLength) {
|
|
50038
|
-
let m = maxInt;
|
|
50039
|
-
for (const currentValue of input) {
|
|
50040
|
-
if (currentValue >= n && currentValue < m) {
|
|
50041
|
-
m = currentValue;
|
|
50042
|
-
}
|
|
50043
|
-
}
|
|
50044
|
-
const handledCPCountPlusOne = handledCPCount + 1;
|
|
50045
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
50046
|
-
error2("overflow");
|
|
50047
|
-
}
|
|
50048
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
50049
|
-
n = m;
|
|
50050
|
-
for (const currentValue of input) {
|
|
50051
|
-
if (currentValue < n && ++delta > maxInt) {
|
|
50052
|
-
error2("overflow");
|
|
50053
|
-
}
|
|
50054
|
-
if (currentValue === n) {
|
|
50055
|
-
let q = delta;
|
|
50056
|
-
for (let k = base; ; k += base) {
|
|
50057
|
-
const t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
50058
|
-
if (q < t) {
|
|
50059
|
-
break;
|
|
50060
|
-
}
|
|
50061
|
-
const qMinusT = q - t;
|
|
50062
|
-
const baseMinusT = base - t;
|
|
50063
|
-
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
|
|
50064
|
-
q = floor(qMinusT / baseMinusT);
|
|
50065
|
-
}
|
|
50066
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
50067
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
|
|
50068
|
-
delta = 0;
|
|
50069
|
-
++handledCPCount;
|
|
50070
|
-
}
|
|
50071
|
-
}
|
|
50072
|
-
++delta;
|
|
50073
|
-
++n;
|
|
50074
|
-
}
|
|
50075
|
-
return output.join("");
|
|
50076
|
-
};
|
|
50077
|
-
var toUnicode = function(input) {
|
|
50078
|
-
return mapDomain(input, function(string3) {
|
|
50079
|
-
return regexPunycode.test(string3) ? decode(string3.slice(4).toLowerCase()) : string3;
|
|
50080
|
-
});
|
|
50081
|
-
};
|
|
50082
|
-
var toASCII = function(input) {
|
|
50083
|
-
return mapDomain(input, function(string3) {
|
|
50084
|
-
return regexNonASCII.test(string3) ? "xn--" + encode(string3) : string3;
|
|
50085
|
-
});
|
|
50086
|
-
};
|
|
50087
|
-
var punycode = {
|
|
50088
|
-
/**
|
|
50089
|
-
* A string representing the current Punycode.js version number.
|
|
50090
|
-
* @memberOf punycode
|
|
50091
|
-
* @type String
|
|
50092
|
-
*/
|
|
50093
|
-
version: "2.3.1",
|
|
50094
|
-
/**
|
|
50095
|
-
* An object of methods to convert from JavaScript's internal character
|
|
50096
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
50097
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
50098
|
-
* @memberOf punycode
|
|
50099
|
-
* @type Object
|
|
50100
|
-
*/
|
|
50101
|
-
ucs2: {
|
|
50102
|
-
decode: ucs2decode,
|
|
50103
|
-
encode: ucs2encode
|
|
50104
|
-
},
|
|
50105
|
-
decode,
|
|
50106
|
-
encode,
|
|
50107
|
-
toASCII,
|
|
50108
|
-
toUnicode
|
|
50109
|
-
};
|
|
50110
|
-
module.exports = punycode;
|
|
50111
|
-
}
|
|
50112
|
-
});
|
|
50113
|
-
|
|
50114
|
-
// node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/shared/url.js
|
|
50115
|
-
var require_url2 = __commonJS({
|
|
50116
|
-
"node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/shared/url.js"(exports, module) {
|
|
50117
|
-
"use strict";
|
|
50118
|
-
var urllib = __require("url");
|
|
50119
|
-
var punycode = require_punycode2();
|
|
50120
|
-
var URLImpl = typeof URL !== "undefined" && URL || urllib.URL;
|
|
50121
|
-
var SLASHLESS_AUTHORITY = /^([a-zA-Z][a-zA-Z0-9+.-]*:)(?!\/\/)(.+)$/;
|
|
50122
|
-
function safeDecode(str2) {
|
|
50123
|
-
try {
|
|
50124
|
-
return decodeURIComponent(str2);
|
|
50125
|
-
} catch (_err) {
|
|
50126
|
-
return str2;
|
|
50127
|
-
}
|
|
50128
|
-
}
|
|
50129
|
-
function normalizeHostname(raw) {
|
|
50130
|
-
let hostname2 = raw || "";
|
|
50131
|
-
if (!hostname2) {
|
|
50132
|
-
return "";
|
|
50133
|
-
}
|
|
50134
|
-
if (hostname2.charAt(0) === "[" && hostname2.charAt(hostname2.length - 1) === "]") {
|
|
50135
|
-
return hostname2.slice(1, -1);
|
|
50136
|
-
}
|
|
50137
|
-
return punycode.toASCII(safeDecode(hostname2));
|
|
50138
|
-
}
|
|
50139
|
-
module.exports.parse = (input, parseQueryString) => {
|
|
50140
|
-
input = input || "";
|
|
50141
|
-
if (!URLImpl) {
|
|
50142
|
-
return urllib.parse(input, parseQueryString);
|
|
50143
|
-
}
|
|
50144
|
-
const slashless = SLASHLESS_AUTHORITY.exec(input);
|
|
50145
|
-
const normalized = slashless ? slashless[1] + "//" + slashless[2] : input;
|
|
50146
|
-
let u;
|
|
50147
|
-
try {
|
|
50148
|
-
u = new URLImpl(normalized);
|
|
50149
|
-
} catch (_err) {
|
|
50150
|
-
return urllib.parse(input, parseQueryString);
|
|
50151
|
-
}
|
|
50152
|
-
const hostname2 = normalizeHostname(u.hostname);
|
|
50153
|
-
const port = u.port || null;
|
|
50154
|
-
const pathname = u.pathname || null;
|
|
50155
|
-
const search = u.search || null;
|
|
50156
|
-
let auth = null;
|
|
50157
|
-
if (u.username || u.password) {
|
|
50158
|
-
auth = safeDecode(u.username) + (u.password ? ":" + safeDecode(u.password) : "");
|
|
50159
|
-
}
|
|
50160
|
-
let query;
|
|
50161
|
-
if (parseQueryString) {
|
|
50162
|
-
query = /* @__PURE__ */ Object.create(null);
|
|
50163
|
-
u.searchParams.forEach((value, key) => {
|
|
50164
|
-
if (Object.prototype.hasOwnProperty.call(query, key)) {
|
|
50165
|
-
if (Array.isArray(query[key])) {
|
|
50166
|
-
query[key].push(value);
|
|
50167
|
-
} else {
|
|
50168
|
-
query[key] = [query[key], value];
|
|
50169
|
-
}
|
|
50170
|
-
} else {
|
|
50171
|
-
query[key] = value;
|
|
50172
|
-
}
|
|
50173
|
-
});
|
|
50174
|
-
} else {
|
|
50175
|
-
query = search ? search.slice(1) : null;
|
|
50176
|
-
}
|
|
50177
|
-
return {
|
|
50178
|
-
protocol: u.protocol || null,
|
|
50179
|
-
host: u.host || null,
|
|
50180
|
-
hostname: hostname2,
|
|
50181
|
-
port,
|
|
50182
|
-
pathname,
|
|
50183
|
-
search,
|
|
50184
|
-
path: (pathname || "") + (search || "") || null,
|
|
50185
|
-
href: u.href,
|
|
50186
|
-
auth,
|
|
50187
|
-
query
|
|
50188
|
-
};
|
|
50189
|
-
};
|
|
50190
|
-
module.exports.resolve = (from, to) => {
|
|
50191
|
-
if (!URLImpl) {
|
|
50192
|
-
return urllib.resolve(from, to);
|
|
50193
|
-
}
|
|
50194
|
-
try {
|
|
50195
|
-
return new URLImpl(to, from).href;
|
|
50196
|
-
} catch (_err) {
|
|
50197
|
-
return urllib.resolve(from, to);
|
|
50198
|
-
}
|
|
50199
|
-
};
|
|
50200
|
-
}
|
|
50201
|
-
});
|
|
50202
|
-
|
|
50203
|
-
// node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/errors.js
|
|
50204
|
-
var require_errors3 = __commonJS({
|
|
50205
|
-
"node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/errors.js"(exports, module) {
|
|
50206
|
-
"use strict";
|
|
50207
|
-
var ERROR_CODES = {
|
|
50208
|
-
// Connection errors
|
|
50209
|
-
ECONNECTION: "Connection closed unexpectedly",
|
|
50210
|
-
ETIMEDOUT: "Connection or operation timed out",
|
|
50211
|
-
ESOCKET: "Socket-level error",
|
|
50212
|
-
EDNS: "DNS resolution failed",
|
|
50213
|
-
// TLS/Security errors
|
|
50214
|
-
ETLS: "TLS handshake or STARTTLS failed",
|
|
50215
|
-
EREQUIRETLS: "REQUIRETLS not supported by server (RFC 8689)",
|
|
50216
|
-
// Protocol errors
|
|
50217
|
-
EPROTOCOL: "Invalid SMTP server response",
|
|
50218
|
-
EENVELOPE: "Invalid mail envelope (sender or recipients)",
|
|
50219
|
-
EMESSAGE: "Message delivery error",
|
|
50220
|
-
ESTREAM: "Stream processing error",
|
|
50221
|
-
// Authentication errors
|
|
50222
|
-
EAUTH: "Authentication failed",
|
|
50223
|
-
ENOAUTH: "Authentication credentials not provided",
|
|
50224
|
-
EOAUTH2: "OAuth2 token generation or refresh error",
|
|
50225
|
-
// Resource errors
|
|
50226
|
-
EMAXLIMIT: "Pool resource limit reached (max messages per connection)",
|
|
50227
|
-
// Transport-specific errors
|
|
50228
|
-
ESENDMAIL: "Sendmail command error",
|
|
50229
|
-
ESES: "AWS SES transport error",
|
|
50230
|
-
// Configuration and access errors
|
|
50231
|
-
ECONFIG: "Invalid configuration",
|
|
50232
|
-
EPROXY: "Proxy connection error",
|
|
50233
|
-
EFILEACCESS: "File access rejected (disableFileAccess is set)",
|
|
50234
|
-
EURLACCESS: "URL access rejected (disableUrlAccess is set)",
|
|
50235
|
-
EFETCH: "HTTP fetch error"
|
|
50236
|
-
};
|
|
50237
|
-
module.exports = { ERROR_CODES };
|
|
50238
|
-
for (const code of Object.keys(ERROR_CODES)) {
|
|
50239
|
-
module.exports[code] = code;
|
|
50240
|
-
}
|
|
50241
|
-
}
|
|
50242
|
-
});
|
|
50243
|
-
|
|
50244
|
-
// node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js
|
|
50245
|
-
var require_http_proxy_client2 = __commonJS({
|
|
50246
|
-
"node_modules/.pnpm/nodemailer@9.0.1/node_modules/nodemailer/lib/smtp-connection/http-proxy-client.js"(exports, module) {
|
|
50247
|
-
"use strict";
|
|
50248
|
-
var net = __require("net");
|
|
50249
|
-
var tls = __require("tls");
|
|
50250
|
-
var urllib = require_url2();
|
|
50251
|
-
var errors = require_errors3();
|
|
50252
|
-
function httpProxyClient(proxyUrl, destinationPort, destinationHost, tlsOptions, callback) {
|
|
50253
|
-
if (typeof tlsOptions === "function") {
|
|
50254
|
-
callback = tlsOptions;
|
|
50255
|
-
tlsOptions = {};
|
|
50256
|
-
}
|
|
50257
|
-
tlsOptions = tlsOptions || {};
|
|
50258
|
-
const proxy = urllib.parse(proxyUrl);
|
|
50259
|
-
const connectOptions = {
|
|
50260
|
-
host: proxy.hostname,
|
|
50261
|
-
port: Number(proxy.port) ? Number(proxy.port) : proxy.protocol === "https:" ? 443 : 80
|
|
50262
|
-
};
|
|
50263
|
-
let connect;
|
|
50264
|
-
if (proxy.protocol === "https:") {
|
|
50265
|
-
connectOptions.rejectUnauthorized = tlsOptions.rejectUnauthorized !== false;
|
|
50266
|
-
connect = tls.connect.bind(tls);
|
|
50267
|
-
} else {
|
|
50268
|
-
connect = net.connect.bind(net);
|
|
50269
|
-
}
|
|
50270
|
-
let socket;
|
|
50271
|
-
let finished = false;
|
|
50272
|
-
const tempSocketErr = (err) => {
|
|
50273
|
-
if (finished) {
|
|
50274
|
-
return;
|
|
50275
|
-
}
|
|
50276
|
-
finished = true;
|
|
50277
|
-
try {
|
|
50278
|
-
socket.destroy();
|
|
50279
|
-
} catch (_E) {
|
|
50280
|
-
}
|
|
50281
|
-
callback(err);
|
|
50282
|
-
};
|
|
50283
|
-
const timeoutErr = () => {
|
|
50284
|
-
const err = new Error("Proxy socket timed out");
|
|
50285
|
-
err.code = "ETIMEDOUT";
|
|
50286
|
-
tempSocketErr(err);
|
|
50287
|
-
};
|
|
50288
|
-
socket = connect(connectOptions, () => {
|
|
50289
|
-
if (finished) {
|
|
50290
|
-
return;
|
|
50291
|
-
}
|
|
50292
|
-
const reqHeaders = {
|
|
50293
|
-
Host: destinationHost + ":" + destinationPort,
|
|
50294
|
-
Connection: "close"
|
|
50295
|
-
};
|
|
50296
|
-
if (proxy.auth) {
|
|
50297
|
-
reqHeaders["Proxy-Authorization"] = "Basic " + Buffer.from(proxy.auth).toString("base64");
|
|
50298
|
-
}
|
|
50299
|
-
socket.write(
|
|
50300
|
-
// HTTP method
|
|
50301
|
-
"CONNECT " + destinationHost + ":" + destinationPort + " HTTP/1.1\r\n" + // HTTP request headers
|
|
50302
|
-
Object.keys(reqHeaders).map((key) => key + ": " + reqHeaders[key]).join("\r\n") + // End request
|
|
50303
|
-
"\r\n\r\n"
|
|
50304
|
-
);
|
|
50305
|
-
let headers = "";
|
|
50306
|
-
const onSocketData = (chunk) => {
|
|
50307
|
-
let match;
|
|
50308
|
-
let remainder;
|
|
50309
|
-
if (finished) {
|
|
50310
|
-
return;
|
|
50311
|
-
}
|
|
50312
|
-
headers += chunk.toString("binary");
|
|
50313
|
-
if (match = headers.match(/\r\n\r\n/)) {
|
|
50314
|
-
socket.removeListener("data", onSocketData);
|
|
50315
|
-
remainder = headers.substr(match.index + match[0].length);
|
|
50316
|
-
headers = headers.substr(0, match.index);
|
|
50317
|
-
if (remainder) {
|
|
50318
|
-
socket.unshift(Buffer.from(remainder, "binary"));
|
|
50319
|
-
}
|
|
50320
|
-
finished = true;
|
|
50321
|
-
match = headers.match(/^HTTP\/\d+\.\d+ (\d+)/i);
|
|
50322
|
-
if (!match || (match[1] || "").charAt(0) !== "2") {
|
|
50323
|
-
try {
|
|
50324
|
-
socket.destroy();
|
|
50325
|
-
} catch (_E) {
|
|
50326
|
-
}
|
|
50327
|
-
const err = new Error("Invalid response from proxy" + (match && ": " + match[1] || ""));
|
|
50328
|
-
err.code = errors.EPROXY;
|
|
50329
|
-
return callback(err);
|
|
50330
|
-
}
|
|
50331
|
-
socket.removeListener("error", tempSocketErr);
|
|
50332
|
-
socket.removeListener("timeout", timeoutErr);
|
|
50333
|
-
socket.setTimeout(0);
|
|
50334
|
-
return callback(null, socket);
|
|
50335
|
-
}
|
|
50336
|
-
};
|
|
50337
|
-
socket.on("data", onSocketData);
|
|
50338
|
-
});
|
|
50339
|
-
socket.setTimeout(httpProxyClient.timeout || 30 * 1e3);
|
|
50340
|
-
socket.on("timeout", timeoutErr);
|
|
50341
|
-
socket.once("error", tempSocketErr);
|
|
50342
|
-
}
|
|
50343
|
-
module.exports = httpProxyClient;
|
|
50344
|
-
}
|
|
50345
|
-
});
|
|
50346
|
-
|
|
50347
49878
|
// node_modules/.pnpm/smart-buffer@4.2.0/node_modules/smart-buffer/build/utils.js
|
|
50348
49879
|
var require_utils2 = __commonJS({
|
|
50349
49880
|
"node_modules/.pnpm/smart-buffer@4.2.0/node_modules/smart-buffer/build/utils.js"(exports) {
|
|
@@ -54488,11 +54019,11 @@ var require_build = __commonJS({
|
|
|
54488
54019
|
}
|
|
54489
54020
|
});
|
|
54490
54021
|
|
|
54491
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54022
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/proxy-connection.js
|
|
54492
54023
|
var require_proxy_connection = __commonJS({
|
|
54493
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54024
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/proxy-connection.js"(exports, module) {
|
|
54494
54025
|
"use strict";
|
|
54495
|
-
var httpProxyClient =
|
|
54026
|
+
var httpProxyClient = require_http_proxy_client();
|
|
54496
54027
|
var { SocksClient } = require_build();
|
|
54497
54028
|
var util2 = __require("util");
|
|
54498
54029
|
var httpProxyClientAsync = util2.promisify(httpProxyClient);
|
|
@@ -54617,9 +54148,9 @@ var require_proxy_connection = __commonJS({
|
|
|
54617
54148
|
}
|
|
54618
54149
|
});
|
|
54619
54150
|
|
|
54620
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54151
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/charsets.js
|
|
54621
54152
|
var require_charsets2 = __commonJS({
|
|
54622
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54153
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/charsets.js"(exports, module) {
|
|
54623
54154
|
"use strict";
|
|
54624
54155
|
var CHARACTER_SETS = [
|
|
54625
54156
|
"US-ASCII",
|
|
@@ -54896,9 +54427,9 @@ var require_charsets2 = __commonJS({
|
|
|
54896
54427
|
}
|
|
54897
54428
|
});
|
|
54898
54429
|
|
|
54899
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54430
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/jp-decoder.js
|
|
54900
54431
|
var require_jp_decoder = __commonJS({
|
|
54901
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54432
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/jp-decoder.js"(exports, module) {
|
|
54902
54433
|
"use strict";
|
|
54903
54434
|
var { Transform } = __require("stream");
|
|
54904
54435
|
var encodingJapanese = require_src();
|
|
@@ -54951,9 +54482,9 @@ var require_jp_decoder = __commonJS({
|
|
|
54951
54482
|
}
|
|
54952
54483
|
});
|
|
54953
54484
|
|
|
54954
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
54485
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/tools.js
|
|
54955
54486
|
var require_tools2 = __commonJS({
|
|
54956
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
54487
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/tools.js"(exports, module) {
|
|
54957
54488
|
"use strict";
|
|
54958
54489
|
var libmime = require_libmime();
|
|
54959
54490
|
var { resolveCharset } = require_charsets2();
|
|
@@ -55781,9 +55312,9 @@ var require_tools2 = __commonJS({
|
|
|
55781
55312
|
}
|
|
55782
55313
|
});
|
|
55783
55314
|
|
|
55784
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55315
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/id.js
|
|
55785
55316
|
var require_id2 = __commonJS({
|
|
55786
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55317
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/id.js"(exports, module) {
|
|
55787
55318
|
"use strict";
|
|
55788
55319
|
var { formatDateTime } = require_tools2();
|
|
55789
55320
|
module.exports = async (connection, clientInfo) => {
|
|
@@ -55833,9 +55364,9 @@ var require_id2 = __commonJS({
|
|
|
55833
55364
|
}
|
|
55834
55365
|
});
|
|
55835
55366
|
|
|
55836
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55367
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/capability.js
|
|
55837
55368
|
var require_capability = __commonJS({
|
|
55838
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55369
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/capability.js"(exports, module) {
|
|
55839
55370
|
"use strict";
|
|
55840
55371
|
module.exports = async (connection) => {
|
|
55841
55372
|
if (connection.capabilities.size && !connection.expectCapabilityUpdate) {
|
|
@@ -55854,9 +55385,9 @@ var require_capability = __commonJS({
|
|
|
55854
55385
|
}
|
|
55855
55386
|
});
|
|
55856
55387
|
|
|
55857
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55388
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/namespace.js
|
|
55858
55389
|
var require_namespace = __commonJS({
|
|
55859
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55390
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/namespace.js"(exports, module) {
|
|
55860
55391
|
"use strict";
|
|
55861
55392
|
module.exports = async (connection) => {
|
|
55862
55393
|
if (![connection.states.AUTHENTICATED, connection.states.SELECTED].includes(connection.state)) {
|
|
@@ -55961,9 +55492,9 @@ var require_namespace = __commonJS({
|
|
|
55961
55492
|
}
|
|
55962
55493
|
});
|
|
55963
55494
|
|
|
55964
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55495
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/login.js
|
|
55965
55496
|
var require_login = __commonJS({
|
|
55966
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55497
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/login.js"(exports, module) {
|
|
55967
55498
|
"use strict";
|
|
55968
55499
|
var { getStatusCode, getErrorText } = require_tools2();
|
|
55969
55500
|
module.exports = async (connection, username, password) => {
|
|
@@ -55992,9 +55523,9 @@ var require_login = __commonJS({
|
|
|
55992
55523
|
}
|
|
55993
55524
|
});
|
|
55994
55525
|
|
|
55995
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55526
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/logout.js
|
|
55996
55527
|
var require_logout = __commonJS({
|
|
55997
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55528
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/logout.js"(exports, module) {
|
|
55998
55529
|
"use strict";
|
|
55999
55530
|
module.exports = async (connection) => {
|
|
56000
55531
|
if (connection.state === connection.states.LOGOUT) {
|
|
@@ -56026,9 +55557,9 @@ var require_logout = __commonJS({
|
|
|
56026
55557
|
}
|
|
56027
55558
|
});
|
|
56028
55559
|
|
|
56029
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55560
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/starttls.js
|
|
56030
55561
|
var require_starttls = __commonJS({
|
|
56031
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55562
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/starttls.js"(exports, module) {
|
|
56032
55563
|
"use strict";
|
|
56033
55564
|
module.exports = async (connection) => {
|
|
56034
55565
|
if (!connection.capabilities.has("STARTTLS") || connection.secureConnection) {
|
|
@@ -56048,9 +55579,9 @@ var require_starttls = __commonJS({
|
|
|
56048
55579
|
}
|
|
56049
55580
|
});
|
|
56050
55581
|
|
|
56051
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55582
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/special-use.js
|
|
56052
55583
|
var require_special_use = __commonJS({
|
|
56053
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55584
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/special-use.js"(exports, module) {
|
|
56054
55585
|
"use strict";
|
|
56055
55586
|
module.exports = {
|
|
56056
55587
|
flags: ["\\All", "\\Archive", "\\Drafts", "\\Flagged", "\\Junk", "\\Sent", "\\Trash"],
|
|
@@ -56348,9 +55879,9 @@ var require_special_use = __commonJS({
|
|
|
56348
55879
|
}
|
|
56349
55880
|
});
|
|
56350
55881
|
|
|
56351
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
55882
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/list.js
|
|
56352
55883
|
var require_list = __commonJS({
|
|
56353
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
55884
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/list.js"(exports, module) {
|
|
56354
55885
|
"use strict";
|
|
56355
55886
|
var { decodePath, encodePath, normalizePath } = require_tools2();
|
|
56356
55887
|
var { specialUse } = require_special_use();
|
|
@@ -56602,9 +56133,9 @@ var require_list = __commonJS({
|
|
|
56602
56133
|
}
|
|
56603
56134
|
});
|
|
56604
56135
|
|
|
56605
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56136
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/enable.js
|
|
56606
56137
|
var require_enable = __commonJS({
|
|
56607
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56138
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/enable.js"(exports, module) {
|
|
56608
56139
|
"use strict";
|
|
56609
56140
|
module.exports = async (connection, extensionList) => {
|
|
56610
56141
|
if (!connection.capabilities.has("ENABLE") || connection.state !== connection.states.AUTHENTICATED) {
|
|
@@ -56649,9 +56180,9 @@ var require_enable = __commonJS({
|
|
|
56649
56180
|
}
|
|
56650
56181
|
});
|
|
56651
56182
|
|
|
56652
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56183
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/select.js
|
|
56653
56184
|
var require_select = __commonJS({
|
|
56654
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56185
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/select.js"(exports, module) {
|
|
56655
56186
|
"use strict";
|
|
56656
56187
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
56657
56188
|
module.exports = async (connection, path, options) => {
|
|
@@ -56843,9 +56374,9 @@ var require_select = __commonJS({
|
|
|
56843
56374
|
}
|
|
56844
56375
|
});
|
|
56845
56376
|
|
|
56846
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56377
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/fetch.js
|
|
56847
56378
|
var require_fetch2 = __commonJS({
|
|
56848
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56379
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/fetch.js"(exports, module) {
|
|
56849
56380
|
"use strict";
|
|
56850
56381
|
var { formatMessageResponse } = require_tools2();
|
|
56851
56382
|
module.exports = async (connection, range, query, options) => {
|
|
@@ -57031,9 +56562,9 @@ var require_fetch2 = __commonJS({
|
|
|
57031
56562
|
}
|
|
57032
56563
|
});
|
|
57033
56564
|
|
|
57034
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56565
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/create.js
|
|
57035
56566
|
var require_create = __commonJS({
|
|
57036
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56567
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/create.js"(exports, module) {
|
|
57037
56568
|
"use strict";
|
|
57038
56569
|
var { encodePath, normalizePath, getStatusCode, enhanceCommandError } = require_tools2();
|
|
57039
56570
|
module.exports = async (connection, path) => {
|
|
@@ -57090,9 +56621,9 @@ var require_create = __commonJS({
|
|
|
57090
56621
|
}
|
|
57091
56622
|
});
|
|
57092
56623
|
|
|
57093
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56624
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/delete.js
|
|
57094
56625
|
var require_delete = __commonJS({
|
|
57095
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56626
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/delete.js"(exports, module) {
|
|
57096
56627
|
"use strict";
|
|
57097
56628
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
57098
56629
|
module.exports = async (connection, path) => {
|
|
@@ -57120,9 +56651,9 @@ var require_delete = __commonJS({
|
|
|
57120
56651
|
}
|
|
57121
56652
|
});
|
|
57122
56653
|
|
|
57123
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56654
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/rename.js
|
|
57124
56655
|
var require_rename = __commonJS({
|
|
57125
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56656
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/rename.js"(exports, module) {
|
|
57126
56657
|
"use strict";
|
|
57127
56658
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
57128
56659
|
module.exports = async (connection, path, newPath) => {
|
|
@@ -57155,9 +56686,9 @@ var require_rename = __commonJS({
|
|
|
57155
56686
|
}
|
|
57156
56687
|
});
|
|
57157
56688
|
|
|
57158
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56689
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/close.js
|
|
57159
56690
|
var require_close = __commonJS({
|
|
57160
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56691
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/close.js"(exports, module) {
|
|
57161
56692
|
"use strict";
|
|
57162
56693
|
module.exports = async (connection) => {
|
|
57163
56694
|
if (connection.state !== connection.states.SELECTED) {
|
|
@@ -57183,9 +56714,9 @@ var require_close = __commonJS({
|
|
|
57183
56714
|
}
|
|
57184
56715
|
});
|
|
57185
56716
|
|
|
57186
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56717
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/subscribe.js
|
|
57187
56718
|
var require_subscribe = __commonJS({
|
|
57188
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56719
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/subscribe.js"(exports, module) {
|
|
57189
56720
|
"use strict";
|
|
57190
56721
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
57191
56722
|
module.exports = async (connection, path) => {
|
|
@@ -57207,9 +56738,9 @@ var require_subscribe = __commonJS({
|
|
|
57207
56738
|
}
|
|
57208
56739
|
});
|
|
57209
56740
|
|
|
57210
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56741
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/unsubscribe.js
|
|
57211
56742
|
var require_unsubscribe = __commonJS({
|
|
57212
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56743
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/unsubscribe.js"(exports, module) {
|
|
57213
56744
|
"use strict";
|
|
57214
56745
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
57215
56746
|
module.exports = async (connection, path) => {
|
|
@@ -57231,9 +56762,9 @@ var require_unsubscribe = __commonJS({
|
|
|
57231
56762
|
}
|
|
57232
56763
|
});
|
|
57233
56764
|
|
|
57234
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56765
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/store.js
|
|
57235
56766
|
var require_store = __commonJS({
|
|
57236
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56767
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/store.js"(exports, module) {
|
|
57237
56768
|
"use strict";
|
|
57238
56769
|
var { formatFlag, canUseFlag, enhanceCommandError } = require_tools2();
|
|
57239
56770
|
module.exports = async (connection, range, flags, options) => {
|
|
@@ -57295,9 +56826,9 @@ var require_store = __commonJS({
|
|
|
57295
56826
|
}
|
|
57296
56827
|
});
|
|
57297
56828
|
|
|
57298
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
56829
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/search-compiler.js
|
|
57299
56830
|
var require_search_compiler = __commonJS({
|
|
57300
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
56831
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/search-compiler.js"(exports, module) {
|
|
57301
56832
|
"use strict";
|
|
57302
56833
|
var { formatDate, formatFlag, canUseFlag, isDate } = require_tools2();
|
|
57303
56834
|
var setBoolOpt = (attributes, term, value) => {
|
|
@@ -57612,9 +57143,9 @@ var require_search_compiler = __commonJS({
|
|
|
57612
57143
|
}
|
|
57613
57144
|
});
|
|
57614
57145
|
|
|
57615
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57146
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/search.js
|
|
57616
57147
|
var require_search = __commonJS({
|
|
57617
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57148
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/search.js"(exports, module) {
|
|
57618
57149
|
"use strict";
|
|
57619
57150
|
var { enhanceCommandError } = require_tools2();
|
|
57620
57151
|
var { searchCompiler } = require_search_compiler();
|
|
@@ -57751,9 +57282,9 @@ var require_search = __commonJS({
|
|
|
57751
57282
|
}
|
|
57752
57283
|
});
|
|
57753
57284
|
|
|
57754
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57285
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/noop.js
|
|
57755
57286
|
var require_noop = __commonJS({
|
|
57756
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57287
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/noop.js"(exports, module) {
|
|
57757
57288
|
"use strict";
|
|
57758
57289
|
module.exports = async (connection) => {
|
|
57759
57290
|
try {
|
|
@@ -57768,9 +57299,9 @@ var require_noop = __commonJS({
|
|
|
57768
57299
|
}
|
|
57769
57300
|
});
|
|
57770
57301
|
|
|
57771
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57302
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/expunge.js
|
|
57772
57303
|
var require_expunge = __commonJS({
|
|
57773
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57304
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/expunge.js"(exports, module) {
|
|
57774
57305
|
"use strict";
|
|
57775
57306
|
var { enhanceCommandError } = require_tools2();
|
|
57776
57307
|
module.exports = async (connection, range, options) => {
|
|
@@ -57804,9 +57335,9 @@ var require_expunge = __commonJS({
|
|
|
57804
57335
|
}
|
|
57805
57336
|
});
|
|
57806
57337
|
|
|
57807
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57338
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/append.js
|
|
57808
57339
|
var require_append = __commonJS({
|
|
57809
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57340
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/append.js"(exports, module) {
|
|
57810
57341
|
"use strict";
|
|
57811
57342
|
var { formatFlag, canUseFlag, formatDateTime, normalizePath, encodePath, comparePaths, enhanceCommandError } = require_tools2();
|
|
57812
57343
|
module.exports = async (connection, destination, content, flags, idate) => {
|
|
@@ -57906,9 +57437,9 @@ var require_append = __commonJS({
|
|
|
57906
57437
|
}
|
|
57907
57438
|
});
|
|
57908
57439
|
|
|
57909
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57440
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/status.js
|
|
57910
57441
|
var require_status = __commonJS({
|
|
57911
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57442
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/status.js"(exports, module) {
|
|
57912
57443
|
"use strict";
|
|
57913
57444
|
var { encodePath, normalizePath } = require_tools2();
|
|
57914
57445
|
module.exports = async (connection, path, query) => {
|
|
@@ -58029,9 +57560,9 @@ var require_status = __commonJS({
|
|
|
58029
57560
|
}
|
|
58030
57561
|
});
|
|
58031
57562
|
|
|
58032
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57563
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copyuid-parser.js
|
|
58033
57564
|
var require_copyuid_parser = __commonJS({
|
|
58034
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57565
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copyuid-parser.js"(exports, module) {
|
|
58035
57566
|
"use strict";
|
|
58036
57567
|
var { expandRange } = require_tools2();
|
|
58037
57568
|
function parseCopyUid(response, map) {
|
|
@@ -58054,9 +57585,9 @@ var require_copyuid_parser = __commonJS({
|
|
|
58054
57585
|
}
|
|
58055
57586
|
});
|
|
58056
57587
|
|
|
58057
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57588
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copy.js
|
|
58058
57589
|
var require_copy = __commonJS({
|
|
58059
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57590
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/copy.js"(exports, module) {
|
|
58060
57591
|
"use strict";
|
|
58061
57592
|
var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
|
|
58062
57593
|
var { parseCopyUid } = require_copyuid_parser();
|
|
@@ -58086,9 +57617,9 @@ var require_copy = __commonJS({
|
|
|
58086
57617
|
}
|
|
58087
57618
|
});
|
|
58088
57619
|
|
|
58089
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57620
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/move.js
|
|
58090
57621
|
var require_move = __commonJS({
|
|
58091
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57622
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/move.js"(exports, module) {
|
|
58092
57623
|
"use strict";
|
|
58093
57624
|
var { normalizePath, encodePath, enhanceCommandError } = require_tools2();
|
|
58094
57625
|
var { parseCopyUid } = require_copyuid_parser();
|
|
@@ -58129,9 +57660,9 @@ var require_move = __commonJS({
|
|
|
58129
57660
|
}
|
|
58130
57661
|
});
|
|
58131
57662
|
|
|
58132
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57663
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/compress.js
|
|
58133
57664
|
var require_compress = __commonJS({
|
|
58134
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57665
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/compress.js"(exports, module) {
|
|
58135
57666
|
"use strict";
|
|
58136
57667
|
module.exports = async (connection) => {
|
|
58137
57668
|
if (!connection.capabilities.has("COMPRESS=DEFLATE") || connection._inflate) {
|
|
@@ -58150,9 +57681,9 @@ var require_compress = __commonJS({
|
|
|
58150
57681
|
}
|
|
58151
57682
|
});
|
|
58152
57683
|
|
|
58153
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57684
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/quota.js
|
|
58154
57685
|
var require_quota = __commonJS({
|
|
58155
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57686
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/quota.js"(exports, module) {
|
|
58156
57687
|
"use strict";
|
|
58157
57688
|
var { encodePath, normalizePath, enhanceCommandError } = require_tools2();
|
|
58158
57689
|
module.exports = async (connection, path) => {
|
|
@@ -58237,9 +57768,9 @@ var require_quota = __commonJS({
|
|
|
58237
57768
|
}
|
|
58238
57769
|
});
|
|
58239
57770
|
|
|
58240
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57771
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/idle.js
|
|
58241
57772
|
var require_idle = __commonJS({
|
|
58242
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57773
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/idle.js"(exports, module) {
|
|
58243
57774
|
"use strict";
|
|
58244
57775
|
var NOOP_INTERVAL = 2 * 60 * 1e3;
|
|
58245
57776
|
async function runIdle(connection) {
|
|
@@ -58420,9 +57951,9 @@ var require_idle = __commonJS({
|
|
|
58420
57951
|
}
|
|
58421
57952
|
});
|
|
58422
57953
|
|
|
58423
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
57954
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/authenticate.js
|
|
58424
57955
|
var require_authenticate = __commonJS({
|
|
58425
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
57956
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/commands/authenticate.js"(exports, module) {
|
|
58426
57957
|
"use strict";
|
|
58427
57958
|
var { getStatusCode, getErrorText } = require_tools2();
|
|
58428
57959
|
async function handleAuthError(err, errorResponse2) {
|
|
@@ -58549,9 +58080,9 @@ var require_authenticate = __commonJS({
|
|
|
58549
58080
|
}
|
|
58550
58081
|
});
|
|
58551
58082
|
|
|
58552
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
58083
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-commands.js
|
|
58553
58084
|
var require_imap_commands = __commonJS({
|
|
58554
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
58085
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-commands.js"(exports, module) {
|
|
58555
58086
|
"use strict";
|
|
58556
58087
|
module.exports = /* @__PURE__ */ new Map([
|
|
58557
58088
|
["ID", require_id2()],
|
|
@@ -58586,9 +58117,9 @@ var require_imap_commands = __commonJS({
|
|
|
58586
58117
|
}
|
|
58587
58118
|
});
|
|
58588
58119
|
|
|
58589
|
-
// node_modules/.pnpm/imapflow@1.4.
|
|
58120
|
+
// node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-flow.js
|
|
58590
58121
|
var require_imap_flow = __commonJS({
|
|
58591
|
-
"node_modules/.pnpm/imapflow@1.4.
|
|
58122
|
+
"node_modules/.pnpm/imapflow@1.4.6/node_modules/imapflow/lib/imap-flow.js"(exports, module) {
|
|
58592
58123
|
"use strict";
|
|
58593
58124
|
var tls = __require("tls");
|
|
58594
58125
|
var net = __require("net");
|
|
@@ -76564,6 +76095,14 @@ function extractTextBody(source) {
|
|
|
76564
76095
|
const encoding = getHeader(headers, "Content-Transfer-Encoding");
|
|
76565
76096
|
return decodeBody(body, encoding).toString("utf8");
|
|
76566
76097
|
}
|
|
76098
|
+
function extractRfcMessageIdFromSource(source) {
|
|
76099
|
+
if (!source || !source.trim()) return "";
|
|
76100
|
+
const blankLineIdx = source.search(/\r?\n\r?\n/);
|
|
76101
|
+
const headers = blankLineIdx === -1 ? source : source.substring(0, blankLineIdx);
|
|
76102
|
+
const raw = getHeader(headers, "Message-ID") ?? getHeader(headers, "Message-Id");
|
|
76103
|
+
if (!raw) return "";
|
|
76104
|
+
return raw.trim().replace(/^<+/, "").replace(/>+$/, "").trim();
|
|
76105
|
+
}
|
|
76567
76106
|
function extractMimeAttachment(source, attachmentName) {
|
|
76568
76107
|
if (!source || !source.trim()) return null;
|
|
76569
76108
|
const boundary = extractBoundary(source);
|
|
@@ -76810,8 +76349,12 @@ var DIAG_MARKER = "DIAG";
|
|
|
76810
76349
|
var DIAG_FIELD_SEP = "F";
|
|
76811
76350
|
var DIAG_ITEM_SEP = "M";
|
|
76812
76351
|
var CONTENT_MARKER = "CONTENT";
|
|
76352
|
+
var MSGID_MARKER = "MSGID";
|
|
76813
76353
|
var HTML_MARKER = "HTML";
|
|
76814
76354
|
var BATCH_FATAL = "FATAL";
|
|
76355
|
+
function normalizeRfcMessageId(mid) {
|
|
76356
|
+
return (mid || "").trim().replace(/^<+/, "").replace(/>+$/, "").trim();
|
|
76357
|
+
}
|
|
76815
76358
|
function mergeSearchDiagnostics(into, from) {
|
|
76816
76359
|
into.timedOutAccounts.push(...from.timedOutAccounts);
|
|
76817
76360
|
into.skippedLargeMailboxes.push(...from.skippedLargeMailboxes);
|
|
@@ -76886,6 +76429,10 @@ function escapeForAppleScript(text) {
|
|
|
76886
76429
|
if (!text) return "";
|
|
76887
76430
|
return text.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/[\x00-\x1f\x7f]/g, "");
|
|
76888
76431
|
}
|
|
76432
|
+
function escapeForAppleScriptBody(text) {
|
|
76433
|
+
if (!text) return "";
|
|
76434
|
+
return text.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\r\n|\r|\n/g, "\\n").replace(/\t/g, "\\t").replace(/[\x00-\x1f\x7f]/g, "");
|
|
76435
|
+
}
|
|
76889
76436
|
function buildAttachmentCommands(attachments) {
|
|
76890
76437
|
if (!attachments || attachments.length === 0) return "";
|
|
76891
76438
|
for (const filePath of attachments) {
|
|
@@ -77086,6 +76633,32 @@ var AppleMailManager = class {
|
|
|
77086
76633
|
};
|
|
77087
76634
|
/** Cache TTL in milliseconds (60 seconds). */
|
|
77088
76635
|
CACHE_TTL_MS = 6e4;
|
|
76636
|
+
/**
|
|
76637
|
+
* Remembers where each message id was last seen: id → {account, mailbox}.
|
|
76638
|
+
*
|
|
76639
|
+
* Mail.app numeric message ids are unique *per mailbox*, and by-id fetches
|
|
76640
|
+
* (getMessageContent/getRawSource) otherwise have to linear-scan every mailbox
|
|
76641
|
+
* of every account probing `whose id is N`. On a real multi-account setup that
|
|
76642
|
+
* is 700+ mailboxes; a message in a late-iterated folder (e.g. a large "Sent
|
|
76643
|
+
* Items") isn't reached before the AppleScript timeout fires, so the fetch
|
|
76644
|
+
* returns a false "not found" (only INBOX ids, reached early, worked). Every
|
|
76645
|
+
* search/list/by-id result records its id→location here so a subsequent fetch
|
|
76646
|
+
* opens the one right mailbox directly. A stale entry (message moved) simply
|
|
76647
|
+
* misses and falls back to the full scan, so it can never wedge a lookup.
|
|
76648
|
+
*/
|
|
76649
|
+
idLocationIndex = /* @__PURE__ */ new Map();
|
|
76650
|
+
/** Cap on the id→location index so a long-lived process can't grow unbounded. */
|
|
76651
|
+
ID_LOCATION_MAX = 5e3;
|
|
76652
|
+
/** Record (or refresh) where a message id lives, evicting oldest when full. */
|
|
76653
|
+
rememberLocation(id, account, mailbox) {
|
|
76654
|
+
if (!id || !account || !mailbox) return;
|
|
76655
|
+
if (this.idLocationIndex.has(id)) this.idLocationIndex.delete(id);
|
|
76656
|
+
this.idLocationIndex.set(id, { account, mailbox });
|
|
76657
|
+
if (this.idLocationIndex.size > this.ID_LOCATION_MAX) {
|
|
76658
|
+
const oldest = this.idLocationIndex.keys().next().value;
|
|
76659
|
+
if (oldest !== void 0) this.idLocationIndex.delete(oldest);
|
|
76660
|
+
}
|
|
76661
|
+
}
|
|
77089
76662
|
/**
|
|
77090
76663
|
* Returns cached accounts or fetches fresh data if cache is expired/empty.
|
|
77091
76664
|
*/
|
|
@@ -77588,6 +77161,7 @@ var AppleMailManager = class {
|
|
|
77588
77161
|
}
|
|
77589
77162
|
const parts = result.output.split(FIELD_SEP);
|
|
77590
77163
|
if (parts.length < 9) return null;
|
|
77164
|
+
this.rememberLocation(id.toString(), parts[8], parts[7]);
|
|
77591
77165
|
return {
|
|
77592
77166
|
id: id.toString(),
|
|
77593
77167
|
subject: parts[0],
|
|
@@ -77603,6 +77177,47 @@ var AppleMailManager = class {
|
|
|
77603
77177
|
hasAttachments: parts.length > 9 ? parts[9] === "true" : false
|
|
77604
77178
|
};
|
|
77605
77179
|
}
|
|
77180
|
+
/**
|
|
77181
|
+
* Build an app-level AppleScript that opens exactly one account+mailbox, finds
|
|
77182
|
+
* the message with numeric `id` in it, and runs `innerAction` (which may assume
|
|
77183
|
+
* `msg` is bound). Used by the by-id fast paths (getMessageContent/getRawSource)
|
|
77184
|
+
* so a message in a late-iterated large folder resolves directly instead of via
|
|
77185
|
+
* the timeout-prone full-mailbox scan.
|
|
77186
|
+
*
|
|
77187
|
+
* The mailbox name is resolved through `resolveMailbox` (so an alias like
|
|
77188
|
+
* "Sent"→"Sent Items" or a casing mismatch like "INBOX"→"Inbox" still opens the
|
|
77189
|
+
* right folder), and matched case-insensitively by iterating the account's
|
|
77190
|
+
* mailboxes — `mailbox "INBOX" of account …` throws on accounts whose inbox is
|
|
77191
|
+
* actually named "Inbox", which would silently drop us back to the slow scan.
|
|
77192
|
+
* Returns "" (found nothing) on any error, so the caller falls back safely.
|
|
77193
|
+
*/
|
|
77194
|
+
scopedByIdScript(account, mailbox, id, innerAction) {
|
|
77195
|
+
const resolved = this.resolveMailbox(mailbox, account);
|
|
77196
|
+
return buildAppLevelScript(`
|
|
77197
|
+
try
|
|
77198
|
+
set acct to (first account whose name is "${escapeForAppleScript(account)}")
|
|
77199
|
+
set targetMb to missing value
|
|
77200
|
+
ignoring case
|
|
77201
|
+
repeat with mb in mailboxes of acct
|
|
77202
|
+
if (name of mb) is "${escapeForAppleScript(resolved)}" then
|
|
77203
|
+
set targetMb to mb
|
|
77204
|
+
exit repeat
|
|
77205
|
+
end if
|
|
77206
|
+
end repeat
|
|
77207
|
+
end ignoring
|
|
77208
|
+
if targetMb is not missing value then
|
|
77209
|
+
set matchingMsgs to (messages of targetMb whose id is ${Number(id)})
|
|
77210
|
+
if (count of matchingMsgs) > 0 then
|
|
77211
|
+
set msg to item 1 of matchingMsgs
|
|
77212
|
+
${innerAction}
|
|
77213
|
+
end if
|
|
77214
|
+
end if
|
|
77215
|
+
return ""
|
|
77216
|
+
on error errMsg
|
|
77217
|
+
return ""
|
|
77218
|
+
end try
|
|
77219
|
+
`);
|
|
77220
|
+
}
|
|
77606
77221
|
/**
|
|
77607
77222
|
* Get the content of a message.
|
|
77608
77223
|
*
|
|
@@ -77613,11 +77228,30 @@ var AppleMailManager = class {
|
|
|
77613
77228
|
* path doesn't need it; fetching it unconditionally was both slow and, worse,
|
|
77614
77229
|
* returned the entire raw MIME blob mislabeled as HTML (#32).
|
|
77615
77230
|
*/
|
|
77616
|
-
getMessageContent(id, includeHtml = false) {
|
|
77231
|
+
getMessageContent(id, includeHtml = false, hint) {
|
|
77617
77232
|
const sourceFetch = includeHtml ? `set htmlSource to ""
|
|
77618
77233
|
try
|
|
77619
77234
|
set htmlSource to source of msg
|
|
77620
77235
|
end try` : `set htmlSource to ""`;
|
|
77236
|
+
const innerFetch = `
|
|
77237
|
+
set msgSubject to subject of msg
|
|
77238
|
+
set msgRfcId to ""
|
|
77239
|
+
try
|
|
77240
|
+
set msgRfcId to message id of msg
|
|
77241
|
+
end try
|
|
77242
|
+
set msgContent to content of msg
|
|
77243
|
+
${sourceFetch}
|
|
77244
|
+
return msgSubject & "${MSGID_MARKER}" & msgRfcId & "${CONTENT_MARKER}" & msgContent & "${HTML_MARKER}" & htmlSource`;
|
|
77245
|
+
const loc = hint?.account && hint?.mailbox ? { account: hint.account, mailbox: hint.mailbox } : this.idLocationIndex.get(id.toString());
|
|
77246
|
+
if (loc) {
|
|
77247
|
+
const scopedScript = this.scopedByIdScript(loc.account, loc.mailbox, id, innerFetch);
|
|
77248
|
+
const scoped = this.parseMessageContent(
|
|
77249
|
+
id,
|
|
77250
|
+
executeAppleScript(scopedScript, { timeoutMs: 6e4 }),
|
|
77251
|
+
includeHtml
|
|
77252
|
+
);
|
|
77253
|
+
if (scoped) return scoped;
|
|
77254
|
+
}
|
|
77621
77255
|
const script = buildAppLevelScript(`
|
|
77622
77256
|
try
|
|
77623
77257
|
repeat with acct in accounts
|
|
@@ -77626,10 +77260,7 @@ var AppleMailManager = class {
|
|
|
77626
77260
|
set matchingMsgs to (messages of mb whose id is ${Number(id)})
|
|
77627
77261
|
if (count of matchingMsgs) > 0 then
|
|
77628
77262
|
set msg to item 1 of matchingMsgs
|
|
77629
|
-
|
|
77630
|
-
set msgContent to content of msg
|
|
77631
|
-
${sourceFetch}
|
|
77632
|
-
return msgSubject & "${CONTENT_MARKER}" & msgContent & "${HTML_MARKER}" & htmlSource
|
|
77263
|
+
${innerFetch}
|
|
77633
77264
|
end if
|
|
77634
77265
|
end try
|
|
77635
77266
|
end repeat
|
|
@@ -77639,9 +77270,20 @@ var AppleMailManager = class {
|
|
|
77639
77270
|
return ""
|
|
77640
77271
|
end try
|
|
77641
77272
|
`);
|
|
77642
|
-
|
|
77273
|
+
return this.parseMessageContent(
|
|
77274
|
+
id,
|
|
77275
|
+
executeAppleScript(script, { timeoutMs: 6e4 }),
|
|
77276
|
+
includeHtml
|
|
77277
|
+
);
|
|
77278
|
+
}
|
|
77279
|
+
/**
|
|
77280
|
+
* Parse the marker-delimited output of a getMessageContent AppleScript into a
|
|
77281
|
+
* MessageContent, or null when nothing was found / the fetch failed. Shared by
|
|
77282
|
+
* the scoped fast path and the full-mailbox-scan fallback.
|
|
77283
|
+
*/
|
|
77284
|
+
parseMessageContent(id, result, includeHtml) {
|
|
77643
77285
|
if (!result.success || !result.output.trim()) {
|
|
77644
|
-
console.error(`Failed to get message content: ${result.error}`);
|
|
77286
|
+
if (!result.success) console.error(`Failed to get message content: ${result.error}`);
|
|
77645
77287
|
return null;
|
|
77646
77288
|
}
|
|
77647
77289
|
const htmlSplit = result.output.split(HTML_MARKER);
|
|
@@ -77649,12 +77291,16 @@ var AppleMailManager = class {
|
|
|
77649
77291
|
const rawSource = htmlSplit.length > 1 ? htmlSplit[1] : "";
|
|
77650
77292
|
const parts = contentPart.split(CONTENT_MARKER);
|
|
77651
77293
|
if (parts.length < 2) return null;
|
|
77294
|
+
const subjParts = parts[0].split(MSGID_MARKER);
|
|
77295
|
+
const subject = subjParts[0];
|
|
77296
|
+
const rfcMessageId = normalizeRfcMessageId(subjParts.length > 1 ? subjParts[1] : "");
|
|
77652
77297
|
const htmlContent = includeHtml && rawSource ? extractHtmlBody(rawSource) || void 0 : void 0;
|
|
77653
77298
|
return {
|
|
77654
77299
|
id: id.toString(),
|
|
77655
|
-
subject
|
|
77300
|
+
subject,
|
|
77656
77301
|
plainText: parts[1],
|
|
77657
|
-
htmlContent
|
|
77302
|
+
htmlContent,
|
|
77303
|
+
rfcMessageId
|
|
77658
77304
|
};
|
|
77659
77305
|
}
|
|
77660
77306
|
/**
|
|
@@ -77666,7 +77312,18 @@ var AppleMailManager = class {
|
|
|
77666
77312
|
* the entire raw message including base64-encoded attachments —
|
|
77667
77313
|
* a 20MB attachment can take several seconds over Exchange/IMAP.
|
|
77668
77314
|
*/
|
|
77669
|
-
getRawSource(id) {
|
|
77315
|
+
getRawSource(id, hint) {
|
|
77316
|
+
const loc = hint?.account && hint?.mailbox ? { account: hint.account, mailbox: hint.mailbox } : this.idLocationIndex.get(id.toString());
|
|
77317
|
+
if (loc) {
|
|
77318
|
+
const scopedScript = this.scopedByIdScript(
|
|
77319
|
+
loc.account,
|
|
77320
|
+
loc.mailbox,
|
|
77321
|
+
id,
|
|
77322
|
+
"return source of msg"
|
|
77323
|
+
);
|
|
77324
|
+
const scoped = executeAppleScript(scopedScript, { timeoutMs: 12e4 });
|
|
77325
|
+
if (scoped.success && scoped.output.trim()) return scoped.output;
|
|
77326
|
+
}
|
|
77670
77327
|
const script = buildAppLevelScript(`
|
|
77671
77328
|
try
|
|
77672
77329
|
repeat with acct in accounts
|
|
@@ -77837,8 +77494,9 @@ var AppleMailManager = class {
|
|
|
77837
77494
|
} else if (parts.length === 7) {
|
|
77838
77495
|
hasAttachments = parts[6] === "true";
|
|
77839
77496
|
}
|
|
77497
|
+
const msgId = parts[0].trim();
|
|
77840
77498
|
messages.push({
|
|
77841
|
-
id:
|
|
77499
|
+
id: msgId,
|
|
77842
77500
|
subject: parts[1],
|
|
77843
77501
|
sender: parts[2],
|
|
77844
77502
|
recipients: [],
|
|
@@ -77851,6 +77509,7 @@ var AppleMailManager = class {
|
|
|
77851
77509
|
account,
|
|
77852
77510
|
hasAttachments
|
|
77853
77511
|
});
|
|
77512
|
+
this.rememberLocation(msgId, account, msgMailbox);
|
|
77854
77513
|
}
|
|
77855
77514
|
return messages;
|
|
77856
77515
|
}
|
|
@@ -77889,7 +77548,7 @@ var AppleMailManager = class {
|
|
|
77889
77548
|
// ───────────────────────────────────────────────────────────────────
|
|
77890
77549
|
sendEmail(to, subject, body, cc, bcc, account, attachments) {
|
|
77891
77550
|
const safeSubject = escapeForAppleScript(subject);
|
|
77892
|
-
const safeBody =
|
|
77551
|
+
const safeBody = escapeForAppleScriptBody(body);
|
|
77893
77552
|
let recipientCommands = "";
|
|
77894
77553
|
for (const addr of to) {
|
|
77895
77554
|
recipientCommands += `make new to recipient at end of to recipients with properties {address:"${escapeForAppleScript(addr)}"}
|
|
@@ -78019,7 +77678,7 @@ var AppleMailManager = class {
|
|
|
78019
77678
|
*/
|
|
78020
77679
|
createDraft(to, subject, body, cc, bcc, account, attachments) {
|
|
78021
77680
|
const safeSubject = escapeForAppleScript(subject);
|
|
78022
|
-
const safeBody =
|
|
77681
|
+
const safeBody = escapeForAppleScriptBody(body);
|
|
78023
77682
|
let recipientCommands = "";
|
|
78024
77683
|
for (const addr of to) {
|
|
78025
77684
|
recipientCommands += `make new to recipient at end of to recipients with properties {address:"${escapeForAppleScript(addr)}"}
|
|
@@ -78092,7 +77751,7 @@ var AppleMailManager = class {
|
|
|
78092
77751
|
* @returns true if reply created/sent successfully
|
|
78093
77752
|
*/
|
|
78094
77753
|
replyToMessage(id, body, replyAll = false, send = true) {
|
|
78095
|
-
const safeBody =
|
|
77754
|
+
const safeBody = escapeForAppleScriptBody(body);
|
|
78096
77755
|
const replyAllClause = replyAll ? " with reply to all" : "";
|
|
78097
77756
|
const sendAction = send ? "send theReply" : "";
|
|
78098
77757
|
const script = buildAppLevelScript(`
|
|
@@ -78133,7 +77792,7 @@ var AppleMailManager = class {
|
|
|
78133
77792
|
* @returns true if forward created/sent successfully
|
|
78134
77793
|
*/
|
|
78135
77794
|
forwardMessage(id, to, body, send = true) {
|
|
78136
|
-
const safeBody = body ?
|
|
77795
|
+
const safeBody = body ? escapeForAppleScriptBody(body) : "";
|
|
78137
77796
|
const sendAction = send ? "send theForward" : "";
|
|
78138
77797
|
let recipientCommands = "";
|
|
78139
77798
|
for (const addr of to) {
|
|
@@ -81429,20 +81088,32 @@ ${messageList}${coverageBlock}`,
|
|
|
81429
81088
|
server.registerTool(
|
|
81430
81089
|
"get-message",
|
|
81431
81090
|
{
|
|
81432
|
-
description:
|
|
81091
|
+
description: `Use when: reading the full body of one message whose id you already have (numeric or imap:\u2026); set preferHtml to get the HTML body instead of plain text.
|
|
81092
|
+
Returns: the message subject, body (plain text by default, HTML when preferHtml is true), and its stable RFC Message-ID (rfcMessageId) for dedup/threading.
|
|
81093
|
+
Tip: pass the mailbox+account you got the id from (e.g. from search-messages) to fetch it directly \u2014 required for reliable reads of large folders like "Sent Items", which otherwise time out.
|
|
81094
|
+
Do not use when: you don't yet have an id (use search-messages or list-messages first), or you want the whole conversation (use get-thread).`,
|
|
81433
81095
|
inputSchema: {
|
|
81434
81096
|
id: MESSAGE_ID_SCHEMA,
|
|
81435
|
-
preferHtml: external_exports.boolean().optional().describe("Return the HTML body (extracted from the message source) instead of plain text")
|
|
81097
|
+
preferHtml: external_exports.boolean().optional().describe("Return the HTML body (extracted from the message source) instead of plain text"),
|
|
81098
|
+
mailbox: external_exports.string().optional().describe(
|
|
81099
|
+
'Mailbox that holds the message (e.g. "Sent Items"). Numeric ids are unique per mailbox; supplying this (with account) opens that mailbox directly instead of scanning every mailbox, which is required to read large folders like Sent Items without timing out.'
|
|
81100
|
+
),
|
|
81101
|
+
account: external_exports.string().optional().describe(
|
|
81102
|
+
"Account that holds the message. Pair with `mailbox` for a direct, scan-free fetch."
|
|
81103
|
+
)
|
|
81436
81104
|
},
|
|
81437
81105
|
outputSchema: {
|
|
81438
81106
|
id: external_exports.string().optional(),
|
|
81439
81107
|
subject: external_exports.string().optional(),
|
|
81440
81108
|
body: external_exports.string().optional(),
|
|
81441
|
-
isHtml: external_exports.boolean().optional()
|
|
81109
|
+
isHtml: external_exports.boolean().optional(),
|
|
81110
|
+
rfcMessageId: external_exports.string().optional().describe(
|
|
81111
|
+
"Stable RFC 5322 Message-ID (angle brackets stripped); empty when the message has none"
|
|
81112
|
+
)
|
|
81442
81113
|
}
|
|
81443
81114
|
},
|
|
81444
81115
|
withErrorHandling(
|
|
81445
|
-
({ id, preferHtml }) => routeMessage(id, {
|
|
81116
|
+
({ id, preferHtml, mailbox, account }) => routeMessage(id, {
|
|
81446
81117
|
// IMAP id (imap:…) → fetch via IMAP (#43 Phase 3); else AppleScript.
|
|
81447
81118
|
imap: () => imapGetMessage(id, preferHtml === true),
|
|
81448
81119
|
// IMAP path: parse subject/body out of the returned source so the
|
|
@@ -81454,11 +81125,15 @@ server.registerTool(
|
|
|
81454
81125
|
id,
|
|
81455
81126
|
subject: subjectFromGetMessage(r.info),
|
|
81456
81127
|
body: sep2 >= 0 ? r.info.slice(sep2 + 2) : r.info,
|
|
81457
|
-
isHtml: preferHtml === true
|
|
81128
|
+
isHtml: preferHtml === true,
|
|
81129
|
+
rfcMessageId: extractRfcMessageIdFromSource(r.info)
|
|
81458
81130
|
};
|
|
81459
81131
|
},
|
|
81460
81132
|
apple: () => {
|
|
81461
|
-
const content = mailManager.getMessageContent(id, preferHtml === true
|
|
81133
|
+
const content = mailManager.getMessageContent(id, preferHtml === true, {
|
|
81134
|
+
account,
|
|
81135
|
+
mailbox
|
|
81136
|
+
});
|
|
81462
81137
|
if (!content) return errorResponse(`Message with ID "${id}" not found`);
|
|
81463
81138
|
const isHtml = preferHtml === true && !!content.htmlContent;
|
|
81464
81139
|
const body = isHtml ? content.htmlContent : content.plainText;
|
|
@@ -81468,7 +81143,8 @@ ${body}`, {
|
|
|
81468
81143
|
id,
|
|
81469
81144
|
subject: content.subject,
|
|
81470
81145
|
body,
|
|
81471
|
-
isHtml
|
|
81146
|
+
isHtml,
|
|
81147
|
+
rfcMessageId: content.rfcMessageId ?? ""
|
|
81472
81148
|
});
|
|
81473
81149
|
},
|
|
81474
81150
|
ok: "",
|