fix(imap client): harden IMAP client message processing and modernize test tooling
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user