fixed
This commit is contained in:
@@ -146,7 +146,7 @@ app.post('/process/:domain', async (req, res) => {
|
|||||||
const emailBytes = compressed ? gunzipSync(Buffer.from(raw, 'binary')).toString('binary') : raw;
|
const emailBytes = compressed ? gunzipSync(Buffer.from(raw, 'binary')).toString('binary') : raw;
|
||||||
|
|
||||||
const emailBuffer = Buffer.from(emailBytes, 'binary');
|
const emailBuffer = Buffer.from(emailBytes, 'binary');
|
||||||
const parser = await simpleParser(body);
|
const parser = await simpleParser(emailBuffer);
|
||||||
const fromAddr = parser.from?.value[0]?.address || `lambda@${domain}`;
|
const fromAddr = parser.from?.value[0]?.address || `lambda@${domain}`;
|
||||||
recipients = [
|
recipients = [
|
||||||
...(parser.to?.value || []),
|
...(parser.to?.value || []),
|
||||||
|
|||||||
Reference in New Issue
Block a user