Write a quick-and-dirty script to generate JSON from the SMTP message which is close enough to what the Lambda's input would be, so that I can add additional messages to the Lambda's unit tests as needed.
Here's a gist of the script.
As I'm sure you noticed, that data isn't super clean. It's missing some key fields, so it's not 100%. However, my additional processing only needs the
Message content, the
Subject and a few fields from the receipt.
Thanks for looking at my quick-and-dirty, I had fun writing it. May your quick-and-dirties bring you joy as well.
(Update: Made a couple code fixes to the Gist)