fixed
This commit is contained in:
parent
cb25a44d69
commit
6359adb807
|
|
@ -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 || []),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue