This commit is contained in:
2025-05-24 08:59:30 +00:00
parent 14c9fbdc3c
commit 9958c036a0
11 changed files with 488 additions and 234 deletions

View File

@@ -194,13 +194,13 @@ tap.test('Very Small Email - should handle email with minimal headers only', asy
socket.on('data', handler);
});
// Complete envelope
socket.write('MAIL FROM:<a@b.c>\r\n');
// Complete envelope - use valid email addresses
socket.write('MAIL FROM:<a@example.com>\r\n');
await new Promise<string>((resolve) => {
socket.once('data', (chunk) => resolve(chunk.toString()));
});
socket.write('RCPT TO:<x@y.z>\r\n');
socket.write('RCPT TO:<b@example.com>\r\n');
await new Promise<string>((resolve) => {
socket.once('data', (chunk) => resolve(chunk.toString()));
});
@@ -211,7 +211,7 @@ tap.test('Very Small Email - should handle email with minimal headers only', asy
});
// Send absolutely minimal valid email
const minimalHeaders = 'From: a@b.c\r\n\r\n.\r\n';
const minimalHeaders = 'From: a@example.com\r\n\r\n.\r\n';
socket.write(minimalHeaders);
const finalResponse = await new Promise<string>((resolve) => {