mirror of https://github.com/eleith/emailjs.git
test: fix mailparser timing out smtp
This commit is contained in:
parent
4d0b5312f8
commit
bb34667c64
|
@ -26,7 +26,11 @@ const send = (
|
|||
done: () => void
|
||||
) => {
|
||||
server.onData = (stream: Readable, _session, callback: () => void) => {
|
||||
mailparser.simpleParser(stream).then(verify).then(done).catch(done);
|
||||
mailparser
|
||||
.simpleParser(stream, { skipTextLinks: true } as Record<string, unknown>)
|
||||
.then(verify)
|
||||
.then(done)
|
||||
.catch(done);
|
||||
stream.on('end', callback);
|
||||
};
|
||||
client.send(message, (err) => {
|
||||
|
|
Loading…
Reference in New Issue