@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 +1 -1
- package/src/message-move.ts +8 -4
package/package.json
CHANGED
package/src/message-move.ts
CHANGED
|
@@ -695,10 +695,14 @@ export class MessageMoveService {
|
|
|
695
695
|
/**
|
|
696
696
|
* Delete every ThreadMessage row that points at this messageId.
|
|
697
697
|
*
|
|
698
|
-
* A
|
|
699
|
-
*
|
|
700
|
-
*
|
|
701
|
-
*
|
|
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,
|