1
0
mirror of https://github.com/eleith/emailjs.git synced 2024-07-02 19:18:52 +00:00

chore: nits

This commit is contained in:
Zack Schuster 2020-05-27 04:14:24 -07:00
parent 66d4d7f5d2
commit 6461e058f7
2 changed files with 1 additions and 4 deletions

View File

@ -33,7 +33,6 @@ export class Client {
*/
constructor(server: Partial<SMTPConnectionOptions>) {
this.smtp = new SMTPConnection(server);
//this.smtp.debug(1);
}
/**

View File

@ -1,7 +1,5 @@
import type { Readable } from 'stream';
import { readFileSync, createReadStream } from 'fs';
import { join } from 'path';
import test from 'ava';
import mailparser from 'mailparser';
import smtp from 'smtp-server';
@ -25,7 +23,7 @@ const send = (
) => void,
done: () => void
) => {
server.onData = (stream: Readable, _session, callback: () => void) => {
server.onData = (stream, _session, callback: () => void) => {
mailparser
.simpleParser(stream, { skipTextLinks: true } as Record<string, unknown>)
.then(verify)