Check Spam Using the Parse Webhook Kunal Batra January 27, 2014 Technical // SUMMARIES ?> One of my favorite parts of SendGrid is our Parse Webhook. It’s a great tool that enables your applications to receive incoming email. One of the lesser known features of the API is the spam_report and spam_score parameters. Every time your application receives an email through the Parse Webhook, SendGrid uses SpamAssassin and generates a score and report based on the content. We then post those pieces of data to your application along with the other parts of the email. This is useful to discard emails that are spam and avoid your application from having to process junk mail. Try It Out To get an idea of how this works. I made a quick application using the Go language called spamtest.me. Write up an email Send it to email@example.com You should get back an email with your spam score and a description of the rules triggered if any parts of the content look like spam. You want the spam score of your email to be as close as possible to 0 but definitely under 5. Just For Fun Send an intentionally spammy message. For example, try this subject line: REF/PAYMENTS CODE: ECB/06654 $500,000 USD And grab the spammy body from this GitHub gist. Questions If you have any questions feel free to contact me at firstname.lastname@example.org or on Twitter @kunal732. The code for this program can be found at the bottom of the spamtest.me website. For more details on the feature behind this tool, download the Parse Webhook Guide.