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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ba469ac34840ff8880b66c86b7e4d2dccafe640504c96315f72367b8679a54f
4
- data.tar.gz: 42e6201e75a1f00b75ef4429af775c9ad4540353f09b9f2110f20709dfe7606a
3
+ metadata.gz: 4c5121e3c2c5a183492a8669867a7de2045d2f7da5b2e1d411cbc4f3a75dff9d
4
+ data.tar.gz: 1a8405721d7b70ac2032d92fee8ca1b9041535b77ee239764e23f50a45512369
5
5
  SHA512:
6
- metadata.gz: 13eb3007cd43422a646b0c1f80a0d3a25536603b049a3f5e1b6046db4290fb224a36071c990e75d94a14f82a3cfd7939bb557f1b371391b0f17faf99429865ee
7
- data.tar.gz: c56e323b3586e57922e8072086487a674b6c47ed8e5b228742059eac0a58970b0fe9c6ead91ced970b7d1d59bc46cae76b3eca6d07c0af94328579281eede491
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( 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 ) )
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.288
4
+ version: 0.1.8.289
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox