The below App Script fetches the first message of the first Gmail Inbox thread and checks the "From:" header against a regular expression.
Based on the outc