@bobfrankston/mailx-imap 0.1.62 → 0.1.63
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/index.js +3 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { createAutoImapConfig, CompatImapClient } from "@bobfrankston/iflow-direct";
|
|
7
7
|
import { authenticateOAuth } from "@bobfrankston/oauthsupport";
|
|
8
8
|
import { parseSerial, fixCharsetDeclString, storeBus } from "@bobfrankston/mailx-store";
|
|
9
|
-
import { loadSettings, getConfigDir, getHistoryDays, getPrefetch } from "@bobfrankston/mailx-settings";
|
|
9
|
+
import { loadSettings, getConfigDir, getHistoryDays, getPrefetch, tokenDirName } from "@bobfrankston/mailx-settings";
|
|
10
10
|
import { EventEmitter } from "node:events";
|
|
11
11
|
import * as fs from "node:fs";
|
|
12
12
|
import * as path from "node:path";
|
|
@@ -284,7 +284,7 @@ export class ImapManager extends EventEmitter {
|
|
|
284
284
|
this.watchers.delete(accountId);
|
|
285
285
|
}
|
|
286
286
|
// Delete only the IMAP token (not contacts — separate scope, separate consent)
|
|
287
|
-
const accountDir = account.imap.user
|
|
287
|
+
const accountDir = tokenDirName(account.imap.user);
|
|
288
288
|
const tokenDir = path.join(getConfigDir(), "tokens", accountDir);
|
|
289
289
|
const tokenPath = path.join(tokenDir, "token.json");
|
|
290
290
|
if (fs.existsSync(tokenPath)) {
|
|
@@ -728,7 +728,7 @@ export class ImapManager extends EventEmitter {
|
|
|
728
728
|
}
|
|
729
729
|
catch { /* iflow-direct not resolvable */ }
|
|
730
730
|
}
|
|
731
|
-
const tokenDir = path.join(getConfigDir(), "tokens", account.imap.user
|
|
731
|
+
const tokenDir = path.join(getConfigDir(), "tokens", tokenDirName(account.imap.user));
|
|
732
732
|
tokenProvider = async () => {
|
|
733
733
|
// Wall-clock timeout on OAuth. Use a longer timeout when no
|
|
734
734
|
// cached token exists (first auth needs user to click through
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/mailx-imap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.63",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
13
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
13
|
+
"@bobfrankston/mailx-settings": "^0.1.23",
|
|
14
14
|
"@bobfrankston/mailx-store": "^0.1.37",
|
|
15
15
|
"@bobfrankston/iflow-direct": "^0.1.50",
|
|
16
16
|
"@bobfrankston/tcp-transport": "^0.1.6",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
".transformedSnapshot": {
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@bobfrankston/mailx-types": "^0.1.18",
|
|
41
|
-
"@bobfrankston/mailx-settings": "^0.1.
|
|
41
|
+
"@bobfrankston/mailx-settings": "^0.1.23",
|
|
42
42
|
"@bobfrankston/mailx-store": "^0.1.37",
|
|
43
43
|
"@bobfrankston/iflow-direct": "^0.1.50",
|
|
44
44
|
"@bobfrankston/tcp-transport": "^0.1.6",
|