Last active
December 4, 2023 05:43
-
-
Save zl4bv/14ec02ad472ce577854f43efaa913b9d to your computer and use it in GitHub Desktop.
Reject NPS surveys before they reach your inbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require ["comparator-i;ascii-numeric", "reject"]; | |
/** | |
* Emails containing Net Promoter Score surveys | |
*/ | |
if allof ( | |
header :comparator "i;unicode-casemap" :contains "Subject" ["How likely are you to recommend", "How did we do?", "how was your recent delivery?", "Two Quick Questions", "Tell us how we did!"]) | |
{ | |
reject "NPS surveys are not accepted"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment