Hook <> Spark Email Integration

This is amazing! I found out about Hook when I posted a question on the Roam Research forums about how to get emails into Roam. Someone recommended Hook, I came here and found that there is an integration with Spark but it lacks automation. Then I saw this thread!

I added the script code to Hook. I invoked Hook on an email, copied the link, then tried pasting the link in the URL window of Safari. That prompted me to open Spark and I did see the email. I also tried pasting the link in TextEdit. That worked fine too.

But, when I paste the link into Roam Research, it doesn’t work. If I just paste the link directly into a Roam note, I see this syntax: Day V: Inline Calculator, where “Day V: Inline Calculator” is the subject line of the email. If I use “Command-k” to turn some text in Roam into this link, Roam does create a hyperlink. But when I click on the hyperlink, I get this error message:

“404: NOT_FOUND
Code: NOT_FOUND
ID: sfo1::rfzp5-1606743779321-5a5ff6ae1ee5”

Anyone know why this is happening?