Skip to content

Commit

Permalink
fix: deno fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
benedikt-schaber committed Jan 27, 2023
1 parent bb06ff4 commit 2306c62
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions client/basic/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,22 @@ export class SMTPClient {
this.#connection.writeCmd(
`Content-Type: ${attachment.contentType}; name=${attachment.filename}`,
);

if (attachment.contentID) {
this.#connection.writeCmd(
`Content-ID: <${attachment.contentID}>`,
);
}

this.#connection.writeCmd(
`Content-Disposition: ${attachment.contentDisposition}; filename=${attachment.filename}`,
);

if (attachment.encoding === "base64") {
this.#connection.writeCmd(
"Content-Transfer-Encoding: base64\r\n",
);

for (
let line = 0;
line < Math.ceil(attachment.content.length / 75);
Expand All @@ -110,16 +110,16 @@ export class SMTPClient {
line * 75,
(line + 1) * 75,
);

this.#connection.writeCmd(lineOfBase64);
}

this.#connection.writeCmd("\r\n");
} else if (attachment.encoding === "text") {
this.#connection.writeCmd(
"Content-Transfer-Encoding: quoted-printable\r\n",
);

this.#connection.writeCmd(attachment.content + "\r\n");
}
}
Expand Down

0 comments on commit 2306c62

Please sign in to comment.