diff --git a/mail-to-pdf.mjs b/mail-to-pdf.mjs index 0c25fe2..ba5f853 100755 --- a/mail-to-pdf.mjs +++ b/mail-to-pdf.mjs @@ -10,6 +10,7 @@ const sexpr = require("sexpr-plus").parse; $`echo $PWD`; const path = resolve(process.env.PWD, process.argv.slice(-1)[0]); +const fs = require("fs").promises; const mail_body = (await $`mu view ${path} -o sexp`).stdout; @@ -61,7 +62,16 @@ if (!html.includes(`