@remit/mailbox-service 0.0.79 → 0.0.80
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
|
@@ -19,7 +19,6 @@ import type { ImapEnvelope } from "./types.js";
|
|
|
19
19
|
// in another client arrived unstarred and never appeared in Flagged. The
|
|
20
20
|
// server's \Flagged keyword is the star; these cover the mapping on create.
|
|
21
21
|
|
|
22
|
-
const ACCOUNT_ID = "acct-1";
|
|
23
22
|
const ACCOUNT_CONFIG_ID = "cfg-1";
|
|
24
23
|
const MAILBOX_ID = "mbx-1";
|
|
25
24
|
const MESSAGE_ID = "msg-1";
|
|
@@ -66,7 +65,6 @@ type CreateThreadForMessage = (
|
|
|
66
65
|
threadMessageService: IThreadMessageRepository,
|
|
67
66
|
messageId: string,
|
|
68
67
|
mailboxId: string,
|
|
69
|
-
accountId: string,
|
|
70
68
|
accountConfigId: string,
|
|
71
69
|
uid: number,
|
|
72
70
|
internalDate: number,
|
|
@@ -99,7 +97,6 @@ const createThreadWithFlags = async (
|
|
|
99
97
|
repo,
|
|
100
98
|
MESSAGE_ID,
|
|
101
99
|
MAILBOX_ID,
|
|
102
|
-
ACCOUNT_ID,
|
|
103
100
|
ACCOUNT_CONFIG_ID,
|
|
104
101
|
42,
|
|
105
102
|
now,
|
package/src/message-sync.ts
CHANGED
|
@@ -1456,7 +1456,6 @@ export class MessageSyncService {
|
|
|
1456
1456
|
repos.threadMessage,
|
|
1457
1457
|
messageId,
|
|
1458
1458
|
mailboxId,
|
|
1459
|
-
accountId,
|
|
1460
1459
|
accountConfigId,
|
|
1461
1460
|
msg.uid,
|
|
1462
1461
|
msg.internalDate.getTime(),
|
|
@@ -1569,7 +1568,6 @@ export class MessageSyncService {
|
|
|
1569
1568
|
threadMessageService: IThreadMessageRepository,
|
|
1570
1569
|
messageId: string,
|
|
1571
1570
|
mailboxId: string,
|
|
1572
|
-
accountId: string,
|
|
1573
1571
|
accountConfigId: string,
|
|
1574
1572
|
uid: number,
|
|
1575
1573
|
internalDate: number,
|
|
@@ -1603,7 +1601,7 @@ export class MessageSyncService {
|
|
|
1603
1601
|
}
|
|
1604
1602
|
|
|
1605
1603
|
// Derive threadId from the root Message-ID (deterministic)
|
|
1606
|
-
const threadId = deriveThreadId(
|
|
1604
|
+
const threadId = deriveThreadId(accountConfigId, rootMessageIdHeader);
|
|
1607
1605
|
|
|
1608
1606
|
const isRead = flags.includes(MessageSystemFlag.Seen);
|
|
1609
1607
|
|