proton-mail-bridge-client 2.0.3 → 2.0.4
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/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/services/delivery-queue-service.d.ts.map +1 -1
- package/dist/services/delivery-queue-service.js +36 -7
- package/dist/services/delivery-queue-service.js.map +1 -1
- package/dist/services/local-index-service.d.ts.map +1 -1
- package/dist/services/local-index-service.js +46 -3
- package/dist/services/local-index-service.js.map +1 -1
- package/dist/services/simple-imap-service.d.ts +5 -0
- package/dist/services/simple-imap-service.d.ts.map +1 -1
- package/dist/services/simple-imap-service.js +139 -31
- package/dist/services/simple-imap-service.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AAYnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAA2H,iBAAiB,EAA+B,MAAM,mCAAmC,CAAC;AAC5N,OAAO,EAAkB,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAUV,WAAW,EAEX,gBAAgB,EAEjB,MAAM,kBAAkB,CAAC;AA2qD1B,eAAO,MAAM,eAAe,aAyB1B,CAAC;AAgGH,wBAAsB,SAAS,CAAC,CAAC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AAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,GAAG;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,CAS7F;AA4KD,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,OAAO,GAChB;IAAE,EAAE,EAAE,MAAM,EAAE,CAAC;IAAC,EAAE,EAAE,MAAM,EAAE,CAAA;CAAE,CAyBhC;AAwzBD,wBAAgB,kBAAkB,IAAI,gBAAgB,CAkGrD;AAED,wBAAgB,YAAY,CAC1B,MAAM,EAAE,gBAAgB,EACxB,OAAO,GAAE;IACP,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC1B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqhGP;AAED,wBAAsB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAmE1C"}
|
package/dist/index.js
CHANGED
|
@@ -4182,6 +4182,7 @@ export function createServer(config, options = {}) {
|
|
|
4182
4182
|
folder,
|
|
4183
4183
|
permanent,
|
|
4184
4184
|
resolvedUids: uids,
|
|
4185
|
+
uidValidity: currentUidValidity,
|
|
4185
4186
|
dryRun: true,
|
|
4186
4187
|
});
|
|
4187
4188
|
return createTextResult(withBulkNotFound(preview, notFoundEmailIds));
|
|
@@ -4192,6 +4193,7 @@ export function createServer(config, options = {}) {
|
|
|
4192
4193
|
folder,
|
|
4193
4194
|
permanent,
|
|
4194
4195
|
resolvedUids: uids,
|
|
4196
|
+
uidValidity: currentUidValidity,
|
|
4195
4197
|
dryRun: false,
|
|
4196
4198
|
}));
|
|
4197
4199
|
return createTextResult(withBulkNotFound(result, notFoundEmailIds));
|
|
@@ -4226,10 +4228,10 @@ export function createServer(config, options = {}) {
|
|
|
4226
4228
|
const uids = await imapService.resolveUidsForBulkOp(folder, emailIds, match, currentUidValidity);
|
|
4227
4229
|
ensureBulkBatchSize(uids.length, max);
|
|
4228
4230
|
if (normalizeBoolean(args.dryRun, false)) {
|
|
4229
|
-
const preview = await imapService.bulkUpdateFlags({ emailIds, match, folder, flagsToAdd, flagsToRemove, resolvedUids: uids, dryRun: true });
|
|
4231
|
+
const preview = await imapService.bulkUpdateFlags({ emailIds, match, folder, flagsToAdd, flagsToRemove, resolvedUids: uids, uidValidity: currentUidValidity, dryRun: true });
|
|
4230
4232
|
return createTextResult(withBulkNotFound(preview, notFoundEmailIds));
|
|
4231
4233
|
}
|
|
4232
|
-
const result = await withAudit(auditService, name, args, () => imapService.bulkUpdateFlags({ emailIds, match, folder, flagsToAdd, flagsToRemove, resolvedUids: uids, dryRun: false }));
|
|
4234
|
+
const result = await withAudit(auditService, name, args, () => imapService.bulkUpdateFlags({ emailIds, match, folder, flagsToAdd, flagsToRemove, resolvedUids: uids, uidValidity: currentUidValidity, dryRun: false }));
|
|
4233
4235
|
return createTextResult(withBulkNotFound(result, notFoundEmailIds));
|
|
4234
4236
|
}
|
|
4235
4237
|
case "bulk_update_labels": {
|
|
@@ -4260,10 +4262,10 @@ export function createServer(config, options = {}) {
|
|
|
4260
4262
|
const uids = await imapService.resolveUidsForBulkOp(folder, emailIds, match, currentUidValidity);
|
|
4261
4263
|
ensureBulkBatchSize(uids.length, max);
|
|
4262
4264
|
if (normalizeBoolean(args.dryRun, false)) {
|
|
4263
|
-
const preview = await imapService.bulkUpdateLabels({ emailIds, match, folder, labelsToAdd, labelsToRemove, resolvedUids: uids, dryRun: true });
|
|
4265
|
+
const preview = await imapService.bulkUpdateLabels({ emailIds, match, folder, labelsToAdd, labelsToRemove, resolvedUids: uids, uidValidity: currentUidValidity, dryRun: true });
|
|
4264
4266
|
return createTextResult(withBulkNotFound(preview, notFoundEmailIds));
|
|
4265
4267
|
}
|
|
4266
|
-
const result = await withAudit(auditService, name, args, () => imapService.bulkUpdateLabels({ emailIds, match, folder, labelsToAdd, labelsToRemove, resolvedUids: uids, dryRun: false }));
|
|
4268
|
+
const result = await withAudit(auditService, name, args, () => imapService.bulkUpdateLabels({ emailIds, match, folder, labelsToAdd, labelsToRemove, resolvedUids: uids, uidValidity: currentUidValidity, dryRun: false }));
|
|
4267
4269
|
return createTextResult(withBulkNotFound(result, notFoundEmailIds));
|
|
4268
4270
|
}
|
|
4269
4271
|
case "top_senders": {
|