Skip to content

Commit

Permalink
Fix transmit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlgo11 committed Jan 10, 2025
1 parent 86ee458 commit 5b589fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions outbox/src/handlers/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,13 @@ export default async function handleData(message, session) {
);
if (dkimSignature) email.headers['dkim-signature'] = dkimSignature;
}
} catch (_) {
} catch (e) {
console.error(e);
}

await fs.writeFile(`/tmp/${email.id}.eml`, email.full_email());

await execFileAsync(`cat /tmp/${email.id} | sendmail -t -v -f ${from}`);
await execFileAsync(`cat /tmp/${email.id}.eml | sendmail -t -v -f ${from}`);
}

/**
Expand Down

0 comments on commit 5b589fa

Please sign in to comment.