domma-cms 1.32.0 → 1.34.0
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/CHANGELOG.md +13 -0
- package/CLAUDE.md +1 -1
- package/admin/js/lib/admin-brand.js +1 -1
- package/admin/js/lib/admin-theme.js +1 -1
- package/admin/js/lib/shortcode-context-menu.js +2 -2
- package/admin/js/lib/shortcode-registry.js +1 -1
- package/admin/js/lib/sidebar-frequent.js +1 -1
- package/admin/js/lib/sidebar-notify.js +1 -1
- package/admin/js/lib/sidebar-renderer.js +4 -4
- package/admin/js/lib/site-settings-arrange.js +2 -2
- package/admin/js/lib/theme-aware-logo.js +1 -0
- package/admin/js/templates/settings.html +7 -1
- package/admin/js/views/settings.js +2 -2
- package/docs/markdown-shortcodes.md +13 -0
- package/docs/starter-blocks.md +37 -1
- package/package.json +1 -1
- package/plugins/_lib/admin/mail/body-menu.js +1 -1
- package/plugins/_lib/admin/mail/cms-host.js +1 -1
- package/plugins/_lib/admin/mail/compose-window.js +1 -1
- package/plugins/_lib/admin/mail/contacts.js +1 -1
- package/plugins/_lib/admin/mail/diagnostics-section.js +1 -1
- package/plugins/_lib/admin/mail/drag-drop.js +1 -1
- package/plugins/_lib/admin/mail/folder-tree.js +1 -1
- package/plugins/_lib/admin/mail/font-controls.js +1 -1
- package/plugins/_lib/admin/mail/fonts.js +1 -1
- package/plugins/_lib/admin/mail/host-context.js +1 -1
- package/plugins/_lib/admin/mail/identity.js +1 -1
- package/plugins/_lib/admin/mail/image-senders-section.js +1 -1
- package/plugins/_lib/admin/mail/keyboard.js +1 -1
- package/plugins/_lib/admin/mail/mail.html +1 -1
- package/plugins/_lib/admin/mail/message-actions.js +1 -1
- package/plugins/_lib/admin/mail/oauth-panel.js +1 -1
- package/plugins/_lib/admin/mail/panes.js +1 -1
- package/plugins/_lib/admin/mail/reader-kit.js +1 -1
- package/plugins/_lib/admin/mail/reader-runtime.js +2 -1
- package/plugins/_lib/admin/mail/reader-view.js +1 -1
- package/plugins/_lib/admin/mail/resizable.js +1 -1
- package/plugins/_lib/admin/mail/restore-spam.js +1 -1
- package/plugins/_lib/admin/mail/rules.js +1 -1
- package/plugins/_lib/admin/mail/scheduling.js +1 -1
- package/plugins/_lib/admin/mail/section-kit.js +1 -1
- package/plugins/_lib/admin/mail/security-note.js +1 -1
- package/plugins/_lib/admin/mail/settings-section.js +12 -4
- package/plugins/_lib/admin/mail/templates.js +1 -1
- package/plugins/_lib/admin/mail/threads.js +1 -1
- package/plugins/_lib/admin/mail/vacation.js +1 -1
- package/plugins/_lib/admin/mail/when-closed.js +1 -1
- package/plugins/_lib/admin/ui/dates.js +1 -1
- package/plugins/_lib/admin/ui/resizable.js +1 -1
- package/plugins/_lib/domma-mail.lock.json +80 -80
- package/plugins/_lib/mail/accountFileStore.js +1 -1
- package/plugins/_lib/mail/accountRepository.js +23 -2
- package/plugins/_lib/mail/accountRoutes.js +1 -1
- package/plugins/_lib/mail/accounts.js +1 -1
- package/plugins/_lib/mail/bodyTokenProvider.js +1 -1
- package/plugins/_lib/mail/bodyTokens.js +1 -1
- package/plugins/_lib/mail/compose.js +1 -1
- package/plugins/_lib/mail/defaults.js +1 -1
- package/plugins/_lib/mail/envelope.js +1 -1
- package/plugins/_lib/mail/folderActions.js +1 -1
- package/plugins/_lib/mail/folderRuntime.js +1 -1
- package/plugins/_lib/mail/folders.js +1 -1
- package/plugins/_lib/mail/imapPoolRuntime.js +1 -1
- package/plugins/_lib/mail/mbox.js +1 -1
- package/plugins/_lib/mail/message-action.js +1 -1
- package/plugins/_lib/mail/messageSecurity.js +1 -1
- package/plugins/_lib/mail/messageSecurityProvider.js +1 -1
- package/plugins/_lib/mail/networkAddresses.js +1 -1
- package/plugins/_lib/mail/networkPolicy.js +1 -1
- package/plugins/_lib/mail/oauthAccounts.js +1 -1
- package/plugins/_lib/mail/oauthRouteRuntime.js +1 -1
- package/plugins/_lib/mail/oauthRuntime.js +1 -1
- package/plugins/_lib/mail/pollSchedule.js +1 -1
- package/plugins/_lib/mail/poller.js +1 -1
- package/plugins/_lib/mail/pollerRuntime.js +1 -1
- package/plugins/_lib/mail/priority.js +1 -1
- package/plugins/_lib/mail/publicMailbox.js +1 -1
- package/plugins/_lib/mail/readRuntime.js +1 -1
- package/plugins/_lib/mail/render.js +1 -1
- package/plugins/_lib/mail/ruleRunner.js +1 -1
- package/plugins/_lib/mail/schedulerRuntime.js +1 -1
- package/plugins/_lib/mail/secretProvider.js +1 -1
- package/plugins/_lib/mail/secretbox.js +1 -1
- package/plugins/_lib/mail/senderAuth.js +1 -1
- package/plugins/_lib/mail/sieve.js +1 -1
- package/plugins/_lib/mail/smtpService.js +1 -1
- package/plugins/_lib/mail/snoozeRuntime.js +1 -1
- package/plugins/_lib/mail/store.js +1 -1
- package/plugins/_lib/mail/subscriptions.js +1 -1
- package/plugins/_lib/mail/syncPlan.js +1 -1
- package/plugins/_lib/mail/syncRuntime.js +1 -1
- package/plugins/_lib/mail/syncSelection.js +8 -3
- package/plugins/_lib/mail/unreadBadge.js +1 -1
- package/plugins/_lib/mail/unsubscribe.js +1 -1
- package/plugins/_lib/mail/vacationRuntime.js +1 -1
- package/plugins/_lib/mail/write.js +1 -1
- package/server/blocks/catalog.json +24 -0
- package/server/blocks/domma-block-comparison-card.css +20 -0
- package/server/blocks/domma-block-comparison-card.html +18 -0
- package/server/blocks/domma-block-comparison-card.meta.json +7 -0
- package/server/blocks/domma-block-cta-card.css +20 -0
- package/server/blocks/domma-block-cta-card.html +15 -0
- package/server/blocks/domma-block-cta-card.meta.json +7 -0
- package/server/blocks/domma-block-feature-card.css +20 -0
- package/server/blocks/domma-block-feature-card.html +15 -0
- package/server/blocks/domma-block-feature-card.meta.json +7 -0
- package/server/blocks/domma-block-image-card.css +20 -0
- package/server/blocks/domma-block-image-card.html +17 -0
- package/server/blocks/domma-block-image-card.meta.json +7 -0
- package/server/services/adminBrand.js +4 -1
- package/server/services/embedCsp.js +1 -1
- package/server/services/markdown.js +65 -6
- package/server/services/sidebarFrequent.js +1 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": "@domma-mail/core",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.21.0",
|
|
5
5
|
"files": {
|
|
6
|
-
"plugins/_lib/mail/defaults.js": "
|
|
7
|
-
"plugins/_lib/mail/priority.js": "
|
|
8
|
-
"plugins/_lib/mail/envelope.js": "
|
|
9
|
-
"plugins/_lib/mail/pollSchedule.js": "
|
|
10
|
-
"plugins/_lib/mail/syncPlan.js": "
|
|
11
|
-
"plugins/_lib/admin/mail/threads.js": "
|
|
12
|
-
"plugins/_lib/admin/mail/vacation.js": "
|
|
13
|
-
"plugins/_lib/mail/secretProvider.js": "
|
|
14
|
-
"plugins/_lib/mail/secretbox.js": "
|
|
15
|
-
"plugins/_lib/mail/bodyTokenProvider.js": "
|
|
16
|
-
"plugins/_lib/mail/bodyTokens.js": "
|
|
17
|
-
"plugins/_lib/mail/accountFileStore.js": "
|
|
18
|
-
"plugins/_lib/mail/accountRepository.js": "
|
|
19
|
-
"plugins/_lib/mail/accountRoutes.js": "
|
|
20
|
-
"plugins/_lib/mail/networkAddresses.js": "
|
|
21
|
-
"plugins/_lib/mail/networkPolicy.js": "
|
|
22
|
-
"plugins/_lib/mail/imapPoolRuntime.js": "
|
|
23
|
-
"plugins/_lib/mail/publicMailbox.js": "
|
|
24
|
-
"plugins/_lib/mail/render.js": "
|
|
25
|
-
"plugins/_lib/mail/unsubscribe.js": "
|
|
26
|
-
"plugins/_lib/mail/unreadBadge.js": "
|
|
27
|
-
"plugins/_lib/mail/message-action.js": "
|
|
28
|
-
"plugins/_lib/admin/mail/identity.js": "
|
|
29
|
-
"plugins/_lib/mail/messageSecurityProvider.js": "
|
|
30
|
-
"plugins/_lib/mail/messageSecurity.js": "
|
|
31
|
-
"plugins/_lib/mail/smtpService.js": "
|
|
32
|
-
"plugins/_lib/mail/subscriptions.js": "
|
|
33
|
-
"plugins/_lib/mail/senderAuth.js": "
|
|
34
|
-
"plugins/_lib/mail/readRuntime.js": "
|
|
35
|
-
"plugins/_lib/admin/mail/image-senders-section.js": "
|
|
36
|
-
"plugins/_lib/admin/mail/mail.html": "
|
|
37
|
-
"plugins/_lib/admin/mail/section-kit.js": "
|
|
38
|
-
"plugins/_lib/admin/mail/when-closed.js": "
|
|
39
|
-
"plugins/_lib/admin/mail/oauth-panel.js": "
|
|
40
|
-
"plugins/_lib/admin/mail/rules.js": "
|
|
41
|
-
"plugins/_lib/admin/mail/reader-kit.js": "
|
|
42
|
-
"plugins/_lib/admin/mail/panes.js": "
|
|
43
|
-
"plugins/_lib/admin/mail/contacts.js": "
|
|
44
|
-
"plugins/_lib/admin/mail/message-actions.js": "
|
|
45
|
-
"plugins/_lib/admin/mail/resizable.js": "
|
|
46
|
-
"plugins/_lib/admin/mail/settings-section.js": "
|
|
47
|
-
"plugins/_lib/admin/mail/compose-window.js": "
|
|
48
|
-
"plugins/_lib/admin/mail/folder-tree.js": "
|
|
49
|
-
"plugins/_lib/admin/mail/body-menu.js": "
|
|
50
|
-
"plugins/_lib/admin/mail/diagnostics-section.js": "
|
|
51
|
-
"plugins/_lib/admin/mail/drag-drop.js": "
|
|
52
|
-
"plugins/_lib/admin/mail/scheduling.js": "
|
|
53
|
-
"plugins/_lib/admin/mail/font-controls.js": "
|
|
54
|
-
"plugins/_lib/admin/mail/fonts.js": "
|
|
55
|
-
"plugins/_lib/admin/mail/keyboard.js": "
|
|
56
|
-
"plugins/_lib/admin/mail/mail.css": "
|
|
57
|
-
"plugins/_lib/admin/mail/reader-view.js": "
|
|
58
|
-
"plugins/_lib/admin/mail/templates.js": "
|
|
59
|
-
"plugins/_lib/admin/mail/security-note.js": "
|
|
60
|
-
"plugins/_lib/admin/ui/dates.js": "
|
|
61
|
-
"plugins/_lib/mail/compose.js": "
|
|
62
|
-
"plugins/_lib/admin/mail/reader-runtime.js": "
|
|
63
|
-
"plugins/_lib/admin/mail/host-context.js": "
|
|
64
|
-
"plugins/_lib/admin/mail/cms-host.js": "
|
|
65
|
-
"plugins/_lib/admin/ui/resizable.js": "
|
|
66
|
-
"plugins/_lib/mail/store.js": "
|
|
67
|
-
"plugins/_lib/mail/syncSelection.js": "
|
|
68
|
-
"plugins/_lib/mail/pollerRuntime.js": "
|
|
69
|
-
"plugins/_lib/mail/poller.js": "
|
|
70
|
-
"plugins/_lib/mail/syncRuntime.js": "
|
|
71
|
-
"plugins/_lib/mail/write.js": "
|
|
72
|
-
"plugins/_lib/admin/mail/restore-spam.js": "
|
|
73
|
-
"plugins/_lib/mail/folders.js": "
|
|
74
|
-
"plugins/_lib/mail/folderActions.js": "
|
|
75
|
-
"plugins/_lib/mail/folderRuntime.js": "
|
|
76
|
-
"plugins/_lib/mail/ruleRunner.js": "
|
|
77
|
-
"plugins/_lib/mail/schedulerRuntime.js": "
|
|
78
|
-
"plugins/_lib/mail/snoozeRuntime.js": "
|
|
79
|
-
"plugins/_lib/mail/vacationRuntime.js": "
|
|
80
|
-
"plugins/_lib/mail/mbox.js": "
|
|
81
|
-
"plugins/_lib/mail/sieve.js": "
|
|
82
|
-
"plugins/_lib/mail/oauthRuntime.js": "
|
|
83
|
-
"plugins/_lib/mail/oauthRouteRuntime.js": "
|
|
84
|
-
"plugins/_lib/mail/oauthAccounts.js": "
|
|
6
|
+
"plugins/_lib/mail/defaults.js": "f6c8869ddd2d4201f69d37d1c524e8b83ebc4efaa9d9f173407df32f21a9116c",
|
|
7
|
+
"plugins/_lib/mail/priority.js": "a051c2bb241a9e9e2e697604dea3943334d0b82a14c4148f5aa53ef758afdbd1",
|
|
8
|
+
"plugins/_lib/mail/envelope.js": "d2f5211d6a43e48e0f650a5bca4fcae4ca7a17aee381d9154ad011cbaff01e58",
|
|
9
|
+
"plugins/_lib/mail/pollSchedule.js": "d52edd793c678a62c0a3544ede56953a21433227763080e8de03d2cb1b14f8ce",
|
|
10
|
+
"plugins/_lib/mail/syncPlan.js": "58cf55a53d24efbe9ace9caf0729e845272a1a1dd347a29ca30e7e8fb89e5aec",
|
|
11
|
+
"plugins/_lib/admin/mail/threads.js": "beeeb5c2b63080813afdaaa244c35fa513d8a8bef0f72ad232edaa08de98fa67",
|
|
12
|
+
"plugins/_lib/admin/mail/vacation.js": "83168af79894fd9e75fb0ebb91942e4d1bff6d120f064512dee30cd2695cf64e",
|
|
13
|
+
"plugins/_lib/mail/secretProvider.js": "c85919db68bf18e9b390ecb27f3d66be2bb9dee5ebdee647df56fd7ecf18ae49",
|
|
14
|
+
"plugins/_lib/mail/secretbox.js": "f944fe6fc2fdde19c440ce09c4f004a52e5786277dda9dcd18b023e97c75e735",
|
|
15
|
+
"plugins/_lib/mail/bodyTokenProvider.js": "48d597edd8bc3a452c454184e7a4e0cf554029cf45a7d8c732212394bb004749",
|
|
16
|
+
"plugins/_lib/mail/bodyTokens.js": "6f443e36539e56cf3e8188636f633300ac5d4abfb726c2502aeb2e4935e012b6",
|
|
17
|
+
"plugins/_lib/mail/accountFileStore.js": "c28d0047b5ab907813e41b9218f68065d99e90e84ef30f2a212e3b724991569e",
|
|
18
|
+
"plugins/_lib/mail/accountRepository.js": "8046b89fd0ef9f4e42943447c0d6e9ca34dad71fea67b0677f7987f3f6675a01",
|
|
19
|
+
"plugins/_lib/mail/accountRoutes.js": "2aa92dc298e551968d28dd3213abb7ebc5e25c9a7f62138a3b3e55083e803938",
|
|
20
|
+
"plugins/_lib/mail/networkAddresses.js": "04b66e2261a5991e9473c4986775f4199e2001992223e10e6a55d01bcd061f6a",
|
|
21
|
+
"plugins/_lib/mail/networkPolicy.js": "21bdfa9a54e1bec2d55f9c5c6a97122ad9cb724e7427d0d859ea0ef9b6fb8fe7",
|
|
22
|
+
"plugins/_lib/mail/imapPoolRuntime.js": "8b180243a0e7fa36a7f085abed8aa2215f2068649e55daf76c76f7a5e764f42e",
|
|
23
|
+
"plugins/_lib/mail/publicMailbox.js": "e2ca2ce23c3a17b9f54241176271e49696fd5fceac356a89d7ebd696f50db393",
|
|
24
|
+
"plugins/_lib/mail/render.js": "93614843084b5e16dda29cfa79a70e389316b3c8235466f7dc54e1e0dd5c3e26",
|
|
25
|
+
"plugins/_lib/mail/unsubscribe.js": "efb4e815c24993a7f2a2aae7677cdef27e6b19422e4b8a353c7887f9960750d1",
|
|
26
|
+
"plugins/_lib/mail/unreadBadge.js": "40d503d32c900f4eee026a0704debf038ed459070ec975d5abcfc61e2265c541",
|
|
27
|
+
"plugins/_lib/mail/message-action.js": "e931b8525bfecb564786be4f629b3ef0d0390a087204afe149240e30de1db1a1",
|
|
28
|
+
"plugins/_lib/admin/mail/identity.js": "ad9e43a1aa1dedff99a96d880474c965d4ddecb3cc5a550c5220999a1987d4df",
|
|
29
|
+
"plugins/_lib/mail/messageSecurityProvider.js": "9a0a6815837199c3dbc6e039b5e18a8c0f34fd45b10382d05ab450cef2be165d",
|
|
30
|
+
"plugins/_lib/mail/messageSecurity.js": "74bbb0f3656d1a29211b455e9ab0590141984fcc447a9c44178fb9c2793a5187",
|
|
31
|
+
"plugins/_lib/mail/smtpService.js": "d64a156af7933692c7c7d61b627fe49429d3418c52c2aa518353a0329c1ae166",
|
|
32
|
+
"plugins/_lib/mail/subscriptions.js": "493987fdc659b59c13c6cc72df2b77c2edfeb699eca5c84770f74d54377512b8",
|
|
33
|
+
"plugins/_lib/mail/senderAuth.js": "83e0c3f645a9e6bbff055fe490b3980127fa90b7f5740eb53be2f98d81b3744a",
|
|
34
|
+
"plugins/_lib/mail/readRuntime.js": "e7c0f95966ea25d7e60824a32b0b2b38c74f263762f2944f006a70ee9ee4dbd3",
|
|
35
|
+
"plugins/_lib/admin/mail/image-senders-section.js": "d2998b75c825043491b8f8efb89e575c6df93a5ac34f07736493229ecaa19146",
|
|
36
|
+
"plugins/_lib/admin/mail/mail.html": "54dfc4fa59d31529503b8cd43895026415b4a6f1282343a056324042c90efc26",
|
|
37
|
+
"plugins/_lib/admin/mail/section-kit.js": "74c3cedab1718809364112b64756d8e19b5e5997c6acb663e289effaaf6d1b81",
|
|
38
|
+
"plugins/_lib/admin/mail/when-closed.js": "b0c149040af8a8f7658094913a9a270f79f1de537162e83be2db60ab3d204ae2",
|
|
39
|
+
"plugins/_lib/admin/mail/oauth-panel.js": "06ec04e341a7658f0221a130731f4ea312f24490c3d7d3e73969922123acedf9",
|
|
40
|
+
"plugins/_lib/admin/mail/rules.js": "20f258a21bbbb98226fd31eb8f443b6a221726176133ac43895b595ea0e602b1",
|
|
41
|
+
"plugins/_lib/admin/mail/reader-kit.js": "6e56b5f651bd6e8f0244c649d9530df077ca8f19161fe2b7a8d85d05fb2008c4",
|
|
42
|
+
"plugins/_lib/admin/mail/panes.js": "274654315aa16f8bcf608a3b6aea511a22cb0a0b75702281a268546f84c860f0",
|
|
43
|
+
"plugins/_lib/admin/mail/contacts.js": "cedb1210129fd0503f17eda3aba11c2254d58e2f2a45619d10d6a40f214729e3",
|
|
44
|
+
"plugins/_lib/admin/mail/message-actions.js": "2891436890c0a59172ecc6fda7eef8fb0c24290dc2c3feb71b0b00b5c7e524ca",
|
|
45
|
+
"plugins/_lib/admin/mail/resizable.js": "79bf3b0b0e38378e591d31f9149ca282618eeae688334f090d8a183b5cbc70a0",
|
|
46
|
+
"plugins/_lib/admin/mail/settings-section.js": "3c83d841b7bccee16d35379125ed12f855510cd082cb9f41c7e0e0085115ff91",
|
|
47
|
+
"plugins/_lib/admin/mail/compose-window.js": "c9f257371868bb4a86bfbcfc30ae62d7a25c3cfff31b5c29f96a5ed07525bd00",
|
|
48
|
+
"plugins/_lib/admin/mail/folder-tree.js": "6d421ab3c87be7a6c894b568ec4d3f15ba181a01ab0a2cefdf9bcbf1ca67c690",
|
|
49
|
+
"plugins/_lib/admin/mail/body-menu.js": "ff39986cb0e8e4cf746efbfd443ce53d598570324c79ef027112ee92e9f1486d",
|
|
50
|
+
"plugins/_lib/admin/mail/diagnostics-section.js": "593658341a9e57bf6379120e69c2c3ba0eec01b1e2850c8d8f77c63b55106fad",
|
|
51
|
+
"plugins/_lib/admin/mail/drag-drop.js": "51071cb5b9b2a4bc1020d39e7d2a2adcb73e2e9572d6a615435d97ceed702afb",
|
|
52
|
+
"plugins/_lib/admin/mail/scheduling.js": "37c0453ec36f397a400a8a1039ee4a8d32908ea026b104fb279f3167732cf763",
|
|
53
|
+
"plugins/_lib/admin/mail/font-controls.js": "385ad8a61a9606f1eb6200a379d5ba3b7fd7aa45bafb6fdeb358a8a5d91dd7a2",
|
|
54
|
+
"plugins/_lib/admin/mail/fonts.js": "0c9966d71e2a944e8381353770894a7642140a7b3d2f0155530fabded81ef4d2",
|
|
55
|
+
"plugins/_lib/admin/mail/keyboard.js": "3020634229892cfb9742b537911e2e6d569741f3969bc41fe87456612652445a",
|
|
56
|
+
"plugins/_lib/admin/mail/mail.css": "33820ffc73fb4dd982e98f3460d1fc23197d09e728d221a58f997a3c696d2620",
|
|
57
|
+
"plugins/_lib/admin/mail/reader-view.js": "49adebdf7ebb2dbee129a835f440e7e007533c4352b0d6b23c3675185fc03f5f",
|
|
58
|
+
"plugins/_lib/admin/mail/templates.js": "6255bcea0b5240551fa25c2555b7d4bd1d05658b09978c17534e8b5438827011",
|
|
59
|
+
"plugins/_lib/admin/mail/security-note.js": "6835955f7f81a66f3cdc19f125e758583578d5f6e6fddddd89206b96f3b5cf9c",
|
|
60
|
+
"plugins/_lib/admin/ui/dates.js": "f7149f6ee63b74ea700a1899e2b0a918fca6dcf42c855fbf05d055dc6ddf6ab1",
|
|
61
|
+
"plugins/_lib/mail/compose.js": "2e4748741a91ca6ac79e243e955f843800b2ece8e6348901fdc178fd41ea7deb",
|
|
62
|
+
"plugins/_lib/admin/mail/reader-runtime.js": "654747e0e05ff972d2ef4d6cbfc1cac9a3acad6dc8be7a4b973cdffb33d9a56b",
|
|
63
|
+
"plugins/_lib/admin/mail/host-context.js": "d9bf4da66ba8071dfc0733b0210547a0f82dc10584ec66b7f26de8aa542ba697",
|
|
64
|
+
"plugins/_lib/admin/mail/cms-host.js": "8ad7fb0b1f66683865d33515d76a51d1af69225b21e7905d885da3c8b7c9ec46",
|
|
65
|
+
"plugins/_lib/admin/ui/resizable.js": "46ff7cfa06d3374b92a429980dc15ca308d65ff08431fcea36c1d247435352be",
|
|
66
|
+
"plugins/_lib/mail/store.js": "64b09e8ce89966842f8b6840742c0ed74440b3e6418ada4b737e3722a00c4fa5",
|
|
67
|
+
"plugins/_lib/mail/syncSelection.js": "9b2b046aadf38341495536f18b0a286a3c5fa740a408ef71122b73001d7aad9b",
|
|
68
|
+
"plugins/_lib/mail/pollerRuntime.js": "c5440e16d04e8f40ab8811bfad59737c017e8f66fbe059835fc4dbb6e373fcaa",
|
|
69
|
+
"plugins/_lib/mail/poller.js": "cd0f6c2a50233ad919ae9a53b40e1017f79cb50731272c85be130f7b02fed444",
|
|
70
|
+
"plugins/_lib/mail/syncRuntime.js": "7e7c9976d55d9d1f9a9f5c203f7792ad72ff9f4da9c4c6c8cff917892cf09edb",
|
|
71
|
+
"plugins/_lib/mail/write.js": "5b16e0d05ed1f0c972b5690986391e536bac7d0b1f9a23a1a1678f7c78ab9f29",
|
|
72
|
+
"plugins/_lib/admin/mail/restore-spam.js": "7041a52cb8c02d8553aa91bcdcc12555f29631c7802b9065349c25a838ba719e",
|
|
73
|
+
"plugins/_lib/mail/folders.js": "9d80f64804056adc21683302e92bf2974878645ada49c800edaa502b9496f6e8",
|
|
74
|
+
"plugins/_lib/mail/folderActions.js": "c706bf31479ebf908e16168afef2d459acdd2181e8617f2c4c8a6744aadae437",
|
|
75
|
+
"plugins/_lib/mail/folderRuntime.js": "c20bdc25b12a7632c89f385a16c7fd9384777347eb3077694dfd233bce6a2043",
|
|
76
|
+
"plugins/_lib/mail/ruleRunner.js": "7524e8f476e2ff6fcdf390c6f8997d983e6fe4f1b32747582bae5f429ef20864",
|
|
77
|
+
"plugins/_lib/mail/schedulerRuntime.js": "20c92f02e851239d1a313b7dd58ad096d2c3965e228b9dce49555181fc6db8ed",
|
|
78
|
+
"plugins/_lib/mail/snoozeRuntime.js": "35721de025ed76253c67a8bb7e2dde420f2abc6ab05535d4d6ab430efc2fe76a",
|
|
79
|
+
"plugins/_lib/mail/vacationRuntime.js": "51be0478c7305877af45ca78e846636e9a4cab2d681f5ae550c7937af95b72e2",
|
|
80
|
+
"plugins/_lib/mail/mbox.js": "35a6f3797e72e6017256bd78f8e90afad7595608103b9158a042eb4bc88195b2",
|
|
81
|
+
"plugins/_lib/mail/sieve.js": "160eeb9c3345ee8e0ea27f1ae63d18d3ced0050fe0f41e57420a7e16a365ab27",
|
|
82
|
+
"plugins/_lib/mail/oauthRuntime.js": "2942b0fe45f6e337ad9640b6533327cb10b8c21e3a8ab63f66657e59500ee2c5",
|
|
83
|
+
"plugins/_lib/mail/oauthRouteRuntime.js": "6770b6bb223fbc399749e11978b59ab5b92ad02616970e17343fcd87901c4d4b",
|
|
84
|
+
"plugins/_lib/mail/oauthAccounts.js": "3eda5e56adb2097b41c56df89a698dcd7737cab54513d2b201fa2aa787f7c1e2"
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/accountFileStore.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {randomUUID} from 'node:crypto';
|
|
4
4
|
import fs from 'node:fs/promises';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/accountRepository.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
export const POLL_INTERVALS = Object.freeze([3, 5, 10, 15]);
|
|
4
4
|
import {randomUUID} from 'node:crypto';
|
|
@@ -519,6 +519,26 @@ export function createAccountRepository({store, secrets, isOAuth = account => ac
|
|
|
519
519
|
});
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
+
/** Persist the owner's notification folder selection without changing other preferences. */
|
|
523
|
+
async function setNotificationFolders(userId, accountId, selection) {
|
|
524
|
+
return withStoreLock(async () => {
|
|
525
|
+
const all = await readAll();
|
|
526
|
+
const index = all.findIndex(a => a.id === accountId && a.userId === userId);
|
|
527
|
+
if (index === -1) return null;
|
|
528
|
+
const previous = all[index].notificationFolders;
|
|
529
|
+
const folders = [...new Set(selection.folders)].sort();
|
|
530
|
+
const unchanged = previous?.mode === selection.mode
|
|
531
|
+
&& JSON.stringify([...(previous.folders ?? [])].sort()) === JSON.stringify(folders);
|
|
532
|
+
all[index] = {...all[index], notificationFolders: {
|
|
533
|
+
mode: selection.mode,
|
|
534
|
+
folders,
|
|
535
|
+
revision: unchanged ? previous.revision : randomUUID()
|
|
536
|
+
}, updatedAt: new Date().toISOString()};
|
|
537
|
+
await writeAll(all);
|
|
538
|
+
return all[index];
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
|
|
522
542
|
async function listAllAccounts() { return readAll(); }
|
|
523
543
|
|
|
524
544
|
/** Replace stored compose profiles in the same transaction queue as credentials. */
|
|
@@ -635,6 +655,7 @@ export function createAccountRepository({store, secrets, isOAuth = account => ac
|
|
|
635
655
|
const rewrite = path => mapping.has(path) ? mapping.get(path) : path;
|
|
636
656
|
const account = {...all[index]};
|
|
637
657
|
if (Array.isArray(account.syncFolders)) account.syncFolders = [...new Set(account.syncFolders.map(rewrite).filter(path => path !== null))];
|
|
658
|
+
if (Array.isArray(account.notificationFolders?.folders)) account.notificationFolders = {...account.notificationFolders, folders: [...new Set(account.notificationFolders.folders.map(rewrite).filter(path => path !== null))]};
|
|
638
659
|
if (Array.isArray(account.ruleFolders)) account.ruleFolders = [...new Set(account.ruleFolders.map(rewrite).filter(path => path !== null))];
|
|
639
660
|
if (Array.isArray(account.rules)) account.rules = account.rules.map(rule => {
|
|
640
661
|
const missing = (rule.actions ?? []).some(action => mapping.has(action.folder) && rewrite(action.folder) === null);
|
|
@@ -647,5 +668,5 @@ export function createAccountRepository({store, secrets, isOAuth = account => ac
|
|
|
647
668
|
return all[index];
|
|
648
669
|
});
|
|
649
670
|
}
|
|
650
|
-
return {sieveToPublic, setSieve, vacationToPublic, sendingAddresses, setVacation, snoozeFolder, undoSendSeconds, setSendingOptions, rulesToPublic, ruleGroupsToPublic, rulesToRun, ruleFolders, setRules, rewriteFolderPaths, setIdentities, setTemplates, listAllAccounts, setPollInterval, setSyncFolders, isOAuth, validate, listAccounts, setDefaultAccount, getAccount, saveAccount, deleteAccount, deleteAccountsForUser, pruneOrphans, toConnection, setSmtp, toSmtpConnection, smtpToPublic, trustImageSender, untrustImageSender, setRememberImageSenders, sendersImagesTrusted, setContactImages, contactImagesAllowed};
|
|
671
|
+
return {sieveToPublic, setSieve, vacationToPublic, sendingAddresses, setVacation, snoozeFolder, undoSendSeconds, setSendingOptions, rulesToPublic, ruleGroupsToPublic, rulesToRun, ruleFolders, setRules, rewriteFolderPaths, setIdentities, setTemplates, listAllAccounts, setPollInterval, setSyncFolders, setNotificationFolders, isOAuth, validate, listAccounts, setDefaultAccount, getAccount, saveAccount, deleteAccount, deleteAccountsForUser, pruneOrphans, toConnection, setSmtp, toSmtpConnection, smtpToPublic, trustImageSender, untrustImageSender, setRememberImageSenders, sendersImagesTrusted, setContactImages, contactImagesAllowed};
|
|
651
672
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/accountRoutes.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {MailKeyError} from './secretProvider.js';
|
|
4
4
|
|
|
@@ -472,7 +472,7 @@ export async function setComposeOptions(userId, accountId, options) {
|
|
|
472
472
|
|
|
473
473
|
/** Account lifecycle is authored in domma-mail/packages/core/src/mail/accountRepository.js. */
|
|
474
474
|
export const {
|
|
475
|
-
sieveToPublic, setSieve, vacationToPublic, sendingAddresses, setVacation, snoozeFolder, undoSendSeconds, setSendingOptions, rulesToPublic, ruleGroupsToPublic, rulesToRun, ruleFolders, setRules, rewriteFolderPaths, setIdentities, setTemplates, listAllAccounts, setPollInterval, setSyncFolders, validate, listAccounts, setDefaultAccount, getAccount, saveAccount,
|
|
475
|
+
sieveToPublic, setSieve, vacationToPublic, sendingAddresses, setVacation, snoozeFolder, undoSendSeconds, setSendingOptions, rulesToPublic, ruleGroupsToPublic, rulesToRun, ruleFolders, setRules, rewriteFolderPaths, setIdentities, setTemplates, listAllAccounts, setPollInterval, setSyncFolders, setNotificationFolders, validate, listAccounts, setDefaultAccount, getAccount, saveAccount,
|
|
476
476
|
deleteAccount, deleteAccountsForUser, pruneOrphans, toConnection,
|
|
477
477
|
setSmtp, toSmtpConnection, smtpToPublic, trustImageSender, untrustImageSender, setRememberImageSenders, sendersImagesTrusted, setContactImages, contactImagesAllowed
|
|
478
478
|
} = baseAccounts;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/bodyTokenProvider.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {createHmac, timingSafeEqual} from 'node:crypto';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/bodyTokens.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** CMS compatibility entry point for the existing iframe grant API. */
|
|
4
4
|
import {resolveKeySource} from './secretbox.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/compose.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Turning a message into a reply, and a reply into something sendable.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/defaults.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Reading defaults, shared by every edition.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/envelope.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The shape the mirror holds one message in.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/folderActions.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Whole-folder operations use a snapshot of UIDs, never the visible page or a moving '*'. */
|
|
4
4
|
import {moveBulk, setFlagsBulk} from './write.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/folderRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Portable folder operations. Hosts supply ownership, serialization and metadata updates. */
|
|
4
4
|
import {validateFolderName, buildFolderPath, renameTarget, canModifyFolder, descendantsOf, moveTarget, resolveSubscriptions} from './folders.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/folders.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {resolveSubscriptions} from './subscriptions.js';
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/imapPoolRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* IMAP connection pool for the Mail Reader plugin.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/message-action.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Remember replies and forwards on the original message after delivery. */
|
|
4
4
|
export const SOURCE_HEADER = 'X-Domma-Message-Source';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/messageSecurity.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {createMessageSecurity} from './messageSecurityProvider.js';
|
|
4
4
|
export const {setMessageSecurity, canProtect, protectRaw, protectDraftRaw, unwrapRaw, parseReadable} = createMessageSecurity();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/messageSecurityProvider.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Where signing and encryption plug into the mail core.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/networkAddresses.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Address classification from the CMS outbound policy, MIT licensed. */
|
|
4
4
|
import net from 'node:net';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/networkPolicy.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import dns from 'node:dns/promises';
|
|
4
4
|
import net from 'node:net';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/oauthAccounts.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {randomUUID} from 'node:crypto';
|
|
4
4
|
import {MailKeyError} from './secretProvider.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/oauthRouteRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The OAuth2 sign-in routes for mailboxes: Connect, the provider's callback,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/oauthRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* OAuth2 sign-in for mailboxes (XOAUTH2) - Microsoft 365 / Outlook.com and Gmail.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/pollSchedule.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Deciding which mailboxes are due a poll.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/poller.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Compatibility entry point for the shared mail poller. */
|
|
4
4
|
export {createPoller} from './pollerRuntime.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/publicMailbox.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** Standalone mailbox summary. Explicit fields keep credentials out of responses. */
|
|
4
4
|
export function publicMailbox(account) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/readRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {registerAccountRoutes} from './accountRoutes.js';
|
|
4
4
|
import {ENVELOPE_QUERY, hasAttachment, parseHeaderBlock} from './envelope.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/schedulerRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The worker behind "send later", "undo send" and "snooze".
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/secretProvider.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {createCipheriv, createDecipheriv, createHash, randomBytes, scryptSync} from 'node:crypto';
|
|
4
4
|
import fs from 'node:fs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/secretbox.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** CMS compatibility entry point. Standalone hosts create their own secret box. */
|
|
4
4
|
import path from 'node:path';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/senderAuth.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Did this message really come from the address in its From line?
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/sieve.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/** ManageSieve (RFC 5804). One bounded, TLS-verified session per operation. */
|
|
4
4
|
import net from 'node:net';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/smtpService.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Sending, and keeping a copy where the rest of your clients will find it.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/snoozeRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {safeWritePool, moveMessage} from './write.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/subscriptions.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
export function resolveSubscriptions(boxes) {
|
|
4
4
|
const list = boxes ?? [];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/syncRuntime.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
import {missingUids, planFolderSync} from './syncPlan.js';
|
|
4
4
|
import {resolveSyncFolders} from './syncSelection.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/syncSelection.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* Which folders a mailbox keeps mirrored.
|
|
@@ -37,13 +37,18 @@ const DEFAULT_SPECIAL_USE = new Set(['\\Inbox', '\\Sent']);
|
|
|
37
37
|
export function resolveSyncFolders(account, folders) {
|
|
38
38
|
const available = new Set(folders.map(f => f.path));
|
|
39
39
|
|
|
40
|
+
// Notification folders need current envelopes even when they were not
|
|
41
|
+
// selected for search. Resolve against the live list to include new folders.
|
|
42
|
+
const notification = account?.notificationFolders;
|
|
43
|
+
const notified = notification?.mode === 'all' ? [...available]
|
|
44
|
+
: notification?.mode === 'selected' ? (notification.folders ?? []).filter(path => available.has(path)) : [];
|
|
40
45
|
const chosen = account?.syncFolders;
|
|
41
46
|
if (Array.isArray(chosen)) {
|
|
42
47
|
// Deduplicated here as well as on write: a record could carry
|
|
43
48
|
// duplicates from an older version or an edited file, and each one
|
|
44
49
|
// would otherwise mean syncing the same folder twice every pass.
|
|
45
50
|
return {
|
|
46
|
-
paths: [...new Set(chosen.filter(path => available.has(path)))],
|
|
51
|
+
paths: [...new Set([...chosen.filter(path => available.has(path)), ...notified])],
|
|
47
52
|
source: 'explicit'
|
|
48
53
|
};
|
|
49
54
|
}
|
|
@@ -61,7 +66,7 @@ export function resolveSyncFolders(account, folders) {
|
|
|
61
66
|
paths.push(first.path);
|
|
62
67
|
}
|
|
63
68
|
|
|
64
|
-
return {paths: [...new Set(paths)], source: 'default'};
|
|
69
|
+
return {paths: [...new Set([...paths, ...notified])], source: 'default'};
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Source: @domma-mail/core 0.
|
|
1
|
+
// Source: @domma-mail/core 0.21.0, packages/core/src/mail/unreadBadge.js.
|
|
2
2
|
// Update with domma-mail/scripts/sync-cms.mjs; edit the shared source.
|
|
3
3
|
/**
|
|
4
4
|
* The free reader's sidebar badge - unread mail in each mailbox's INBOX.
|