ishapi 0.1.8.288 → 0.1.8.289
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/jobs/ishapi/email_message_intake_job.rb +5 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c5121e3c2c5a183492a8669867a7de2045d2f7da5b2e1d411cbc4f3a75dff9d
|
4
|
+
data.tar.gz: 1a8405721d7b70ac2032d92fee8ca1b9041535b77ee239764e23f50a45512369
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 243803b2209833ae066372680e06e2aaff06a7f67f98059cd4f11c291bf03836dbcd3150b0081a45b3942afae4fdd1b3ba91d3ffc1a75405d5990063dcba8174
|
7
|
+
data.tar.gz: bada09756fd108e9f1d567eb5b5254f2f966bbbb829588cb56836c51cd79758547f40f5f19ea8da8d4dab1897279ad524c91d6a280919c65641f952a2362620b
|
@@ -168,11 +168,11 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
168
168
|
## Actions & Filters
|
169
169
|
email_filters = Office::EmailFilter.active
|
170
170
|
email_filters.each do |filter|
|
171
|
-
if ( filter.from_regex.blank? || @message.from.match(
|
172
|
-
( filter.from_exact.blank? || @message.from
|
173
|
-
( filter.body_exact.blank? || @message.part_html.include?(
|
174
|
-
( filter.subject_regex.blank? || @message.subject.match(
|
175
|
-
( filter.subject_exact.blank? || @message.subject
|
171
|
+
if ( filter.from_regex.blank? || @message.from.match( filter.from_regex ) ) &&
|
172
|
+
( filter.from_exact.blank? || @message.from&.downcase.include?( filter.from_exact&.downcase ) ) &&
|
173
|
+
( filter.body_exact.blank? || @message.part_html.include?( filter.body_exact ) ) &&
|
174
|
+
( filter.subject_regex.blank? || @message.subject.match( filter.subject_regex ) ) &&
|
175
|
+
( filter.subject_exact.blank? || @message.subject&.downcase.include?( filter.subject_exact&.downcase ) )
|
176
176
|
|
177
177
|
# || MiaTagger.analyze( @message.part_html, :is_spammy_recruite ).score > .5
|
178
178
|
|