feat: Add dedicated received type

This commit is contained in:
Dries Augustyns
2026-02-18 16:24:55 +01:00
parent 3330d83d08
commit f947ee6f22
8 changed files with 45 additions and 3 deletions
+1 -1
View File
@@ -154,7 +154,7 @@ export class Webhooks {
body: '', // Inbound emails don't have body content in our system
from: recipientEmail, // The recipient address that received the email
sourceType: EmailSourceType.INBOUND,
status: EmailStatus.DELIVERED, // Inbound emails are already delivered
status: EmailStatus.RECEIVED, // Inbound emails use RECEIVED status
deliveredAt: new Date(body.mail?.timestamp || new Date()),
},
});