It looks like its erroring out, I would tail it to get the error: https://developers.cloudflare.com/workers/observability/log-from-workers/#view-logs-from-the-dashboard
#Not forwarding or replying to email. (Email workers)
5 messages · Page 1 of 1 (latest)
a few things I see:
const body = await message.body; const subject = await message.subject;
Neither of these are awaitable. body should be raw, which is a readablestream, and subject doesn't exist on emailmessage. Awaiting a non-awaitable object just does nothing though, and you're not using the body eitherway
await message.forward("inbox");
You need to specify a valid email address which is verified and one of the destination addresses you have added
message.reply(replyMessage);
This needs to be awaited
Not sure that's how you create a new emailMessage either, the docs example differs: https://developers.cloudflare.com/email-routing/email-workers/reply-email-workers/
I haven't tried replying though, I do know it has some quirks with replies and how it verifies you can though
yea that's not how you create an email message obj, look at the docs example, there's no subject in the constructor
also subject isn't a property on message at all. The docs are here: https://developers.cloudflare.com/email-routing/email-workers/runtime-api/#emailmessage-definition