Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ source: |
"your document settlement",
"your order with amazon",
"your password has been compromised",
"ach? (?:payment|transfer|transaction)",

// cryptocurrency related subjects
'\d{1,2}.\d{1,8}\s(BTC|ETH|SOL|(?:USD[CT])|XRP) Offer Waiting for(\sYour)?\sReview',
Expand All @@ -254,7 +255,7 @@ source: |

// urgency request
and any(ml.nlu_classifier(body.current_thread.text).entities,
.name == "urgency"
.name in ("urgency", "greeting")
)

// org presence
Expand All @@ -264,6 +265,7 @@ source: |
and (
not strings.istarts_with(subject.subject, "re:")
and not any(headers.hops, any(.fields, strings.ilike(.name, "In-Reply-To")))
or not length(headers.reply_to) > 0
)

// the message is unsolicited and no false positives
Expand Down