@bobfrankston/rmfmail 1.1.196 → 1.1.198

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.
@@ -6,7 +6,7 @@
6
6
 
7
7
  import { createAutoImapConfig, CompatImapClient } from "@bobfrankston/iflow-direct";
8
8
  import type { TransportFactory } from "@bobfrankston/tcp-transport";
9
- import { authenticateOAuth } from "@bobfrankston/oauthsupport";
9
+ import { authenticateOAuth, clearReauthBackoff } from "@bobfrankston/oauthsupport";
10
10
  import { MailxDB, FileMessageStore, parseSerial, fixCharsetDeclString, storeBus, Store } from "@bobfrankston/mailx-store";
11
11
  import { loadSettings, getStorePath, getConfigDir, getHistoryDays, getPrefetch, tokenDirName } from "@bobfrankston/mailx-settings";
12
12
  import type { AccountConfig, MessageEnvelope, EmailAddress, Folder } from "@bobfrankston/mailx-types";
@@ -373,6 +373,11 @@ export class ImapManager extends EventEmitter {
373
373
  const tokenPath = path.join(tokenDir, "token.json");
374
374
  if (fs.existsSync(tokenPath)) { fs.unlinkSync(tokenPath); console.log(` [reauth] Deleted ${tokenPath}`); }
375
375
 
376
+ // User explicitly asked to re-auth — clear any re-auth backoff so
377
+ // addAccount's token validation opens the browser immediately
378
+ // instead of honoring the "don't reopen tabs" cooldown.
379
+ try { clearReauthBackoff(tokenDir); } catch { /* */ }
380
+
376
381
  // Re-register the account to get a fresh config with new tokenProvider
377
382
  this.configs.delete(accountId);
378
383
  await this.addAccount(account);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bobfrankston/mailx-imap",
9
- "version": "0.1.76",
9
+ "version": "0.1.77",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@bobfrankston/iflow-direct": "^0.1.27",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/mailx-imap",
3
- "version": "0.1.76",
3
+ "version": "0.1.77",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",