File tree Expand file tree Collapse file tree 1 file changed +19
-10
lines changed
Expand file tree Collapse file tree 1 file changed +19
-10
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ source: |
1818 )
1919 )
2020 or regex.icontains(body.current_thread.text,
21- 'invited you to view the file ".*" on Dropbox'
21+ 'invited you to view the file ".*" on Dropbox',
22+ 'dr[o0]pb[o0]x (t[o0] )?share (s[o0]me|a|an|the|these) f[i1|][|l](e|es)'
2223 )
2324 )
2425 and sender.email.domain.root_domain not in~ (
@@ -32,16 +33,24 @@ source: |
3233 and any(file.explode(.), strings.ilike(.scan.ocr.raw, "*dropbox*"))
3334 )
3435 or any(body.links,
35- strings.ilike(.display_text,
36- "*review*",
37- "*sign*",
38- "*view*",
39- "*completed document*",
40- "*open agreement*",
41- "*open document*",
42- "*open file*"
36+ (
37+ (
38+ strings.ilike(.display_text,
39+ "*review*",
40+ "*sign*",
41+ "*view*",
42+ "*completed document*",
43+ "*open agreement*",
44+ "*open document*",
45+ "*open file*"
46+ )
47+ and not strings.ilike(.display_text, "*view this email in*")
48+ )
49+ or (
50+ .display_text is null
51+ and .href_url.domain.root_domain in $free_file_hosts
52+ )
4353 )
44- and not strings.ilike(.display_text, "*view this email in*")
4554 and .href_url.domain.root_domain != "dropbox.com"
4655 and any(ml.nlu_classifier(body.current_thread.text).intents,
4756 .name == "cred_theft" and .confidence in ("medium", "high")
You can’t perform that action at this time.
0 commit comments