@remit/backend 0.0.15 → 0.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/backend",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
4
4
  "description": "Remit Mail Inspector API backend",
5
5
  "license": "MIT",
6
6
  "author": "",
@@ -35,7 +35,7 @@ const entry = (over: Partial<QuarantineItem> = {}): QuarantineItem =>
35
35
  quarantinedAt: 1_000,
36
36
  attempts: 3,
37
37
  failureStage: "BodyParse",
38
- failureCode: "UnterminatedMultipartBoundary",
38
+ failureCode: "UnreadableBody",
39
39
  failureMessage: "multipart boundary was never closed",
40
40
  workerVersion: "worker 1.0.0",
41
41
  structure: [{ depth: 0, contentType: "multipart/mixed" }],
@@ -270,11 +270,12 @@ export const buildListThreadMessagesOptions = (query: {
270
270
  * A ThreadMessage row is keyed by (threadId, messageId), and a messageId is
271
271
  * derived from the account plus the RFC 5322 Message-ID, so the same mail
272
272
  * synced from two folders is one row — the mailbox a thread spans is not what
273
- * duplicates it. `MessageMoveService.copyMessage` is the exception: it mints a
274
- * random id for the copy, so a copied message becomes a second row in the same
275
- * thread carrying the same `messageIdHeader`. Reading the whole thread rather
276
- * than one mailbox of it (#46) is what makes both rows visible at once, and two
277
- * entries for one message is never what a conversation should show.
273
+ * duplicates it. `MessageMoveService.copyMessage` is the exception: a copy is a
274
+ * per-folder placement with its own derived id (`deriveCopyMessageId`), so a
275
+ * copied message is a second row in the same thread carrying the same
276
+ * `messageIdHeader`. Reading the whole thread rather than one mailbox of it
277
+ * (#46) is what makes both rows visible at once, and two entries for one message
278
+ * is never what a conversation should show.
278
279
  *
279
280
  * The oldest row wins, so the original outlives the copy, with `threadMessageId`
280
281
  * breaking ties. Both are independent of sort order, so `asc` and `desc` keep