@@ -67,7 +67,6 @@ source: |
6767 )
6868 or any(body.links, regex.icontains(.display_text, '\.?@?(hotmail)\.com'))
6969 )
70-
7170 // Single thread with unsubscribe link or $org_domains link
7271 or (
7372 length(body.links) <= 3
@@ -96,28 +95,28 @@ source: |
9695 and regex.icontains(strings.replace_confusables(body.current_thread.text),
9796 "(?:site|website|page)"
9897 )
99- )
100- // Multiple thread messages
101- or (
102- length(body.links) == 0
103- // small thread with less than 5 messages
104- and length(body.previous_threads) < 5
105- // check previous messages for spam characteristics
106- and any(body.previous_threads,
107- // short previous messages less than 400 chars
108- length(.text) < 400
109- and (
110- // generic greeting
111- regex.icontains(strings.replace_confusables(.text),
112- '(?:h(?:i|ello|ey)|morning)\b'
113- )
114- // service offering keywords
115- and regex.icontains(strings.replace_confusables(.text),
116- '(?:\berror(?:\s+list)?\b|screenshot|report|plan)'
98+ // Multiple thread messages
99+ or (
100+ length(body.links) == 0
101+ // small thread with less than 5 messages
102+ and length(body.previous_threads) < 5
103+ // check previous messages for spam characteristics
104+ and any(body.previous_threads,
105+ // short previous messages less than 400 chars
106+ length(.text) < 400
107+ and (
108+ // generic greeting
109+ regex.icontains(strings.replace_confusables(.text),
110+ '(?:h(?:i|ello|ey)|morning)\b'
111+ )
112+ // service offering keywords
113+ and regex.icontains(strings.replace_confusables(.text),
114+ '(?:\berror(?:\s+list)?\b|screenshot|report|plan)'
115+ )
116+ // previous threads written in English
117+ and ml.nlu_classifier(.text).language == "english"
117118 )
118- // previous threads written in English
119- and ml.nlu_classifier(.text).language == "english"
120- )
119+ )
121120 )
122121 )
123122tags :
0 commit comments