@bobfrankston/mailx-imap 0.1.91 → 0.1.92
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 +10 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -636,14 +636,16 @@ export class ImapManager extends EventEmitter {
|
|
|
636
636
|
const releaseHostSlot = skipSemaphore ? (() => { }) : await this.acquireHostSlot(host);
|
|
637
637
|
let client;
|
|
638
638
|
try {
|
|
639
|
-
// Verbose IMAP wire trace
|
|
640
|
-
//
|
|
641
|
-
//
|
|
642
|
-
//
|
|
643
|
-
//
|
|
644
|
-
//
|
|
645
|
-
//
|
|
646
|
-
|
|
639
|
+
// Verbose IMAP wire trace — diagnostic for silently-hanging
|
|
640
|
+
// commands. It was left permanently ON for the ops/fast lanes, but
|
|
641
|
+
// that logs every literal chunk (8000+ lines during a body-fetch
|
|
642
|
+
// burst), and on Windows the daemon's console.log writes to the log
|
|
643
|
+
// file SYNCHRONOUSLY — so the trace itself blocked the main event
|
|
644
|
+
// loop during sync, starving the IPC reply relay and producing the
|
|
645
|
+
// 78s read stalls (Bob 2026-06-13). Now opt-in: set RMFMAIL_IMAP_TRACE=1
|
|
646
|
+
// to re-enable for a debugging session. Default is quiet.
|
|
647
|
+
const imapTrace = process.env.RMFMAIL_IMAP_TRACE === "1";
|
|
648
|
+
const cfgWithVerbose = (imapTrace && (purpose === "ops" || purpose === "fast")) ? { ...config, verbose: true } : config;
|
|
647
649
|
client = new CompatImapClient(cfgWithVerbose, this.transportFactory);
|
|
648
650
|
}
|
|
649
651
|
catch (e) {
|