fix(imap client): harden IMAP client message processing and modernize test tooling

This commit is contained in:
2026-05-01 16:59:04 +00:00
parent 98263058bf
commit 13ca27db86
12 changed files with 4285 additions and 6059 deletions
+2 -1
View File
@@ -145,7 +145,8 @@ export class ImapServer {
}
}
} catch (error) {
response = `${tag} BAD Error: ${error.message}`;
const errorMessage = error instanceof Error ? error.message : String(error);
response = `${tag} BAD Error: ${errorMessage}`;
}
socket.write(response + "\r\n");