@remit/mailbox-service 0.0.9 → 0.0.10

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/mailbox-service",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -695,10 +695,14 @@ export class MessageMoveService {
695
695
  /**
696
696
  * Delete every ThreadMessage row that points at this messageId.
697
697
  *
698
- * A single Message can have multiple ThreadMessage rows one per mailbox
699
- * the message exists in (e.g. INBOX + a label/folder copy). Deleting them
700
- * up-front in the permanent-delete optimistic step prevents stale rows from
701
- * leaking into mailbox listings while IMAP catches up. See issue #212.
698
+ * A row is keyed by (threadId, messageId), so this is one row in practice —
699
+ * a message filed in several folders keeps a single row, because its
700
+ * messageId is derived from the Message-ID header and not from the mailbox.
701
+ * The query stays a list because the key permits more than one thread per
702
+ * message and nothing enforces otherwise.
703
+ *
704
+ * Deleting up-front in the permanent-delete optimistic step prevents stale
705
+ * rows from leaking into mailbox listings while IMAP catches up (#212).
702
706
  */
703
707
  private deleteThreadMessagesForMessage = async (
704
708
  accountConfigId: string,