ishapi 0.1.8.270 → 0.1.8.271

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: 3e40debbf51442f7426b3fa9b4a700af10766bd23635a0116c78c85bbfcd6027
4
- data.tar.gz: 23bce39fcda81bcb65fbec51cff028488156ad4ef6f9d33d30cf368604065c82
3
+ metadata.gz: d08d69bbceb0955e2194960083a649395ae71dfd50f5868888d404632893d78a
4
+ data.tar.gz: 02b01369f8ab5e36b8aa39454d040c240681d87e11839b5ab5095c4072fb5144
5
5
  SHA512:
6
- metadata.gz: 8cc8ff05edd80990587fc0e7b001ba35d5e5af9b89fdc788b260ea67f9729e0e1556339f7ccb85c6c63650abd5a0c7e662b2ca62273cd34f16ca3b26fc07249b
7
- data.tar.gz: 31a5b803706e621d22ac2afff46c6aefa14b4a0a5493a29f4c2765ff52c5c6449b3122665fedcbc83ba3560fa815f808b757e7c6d121189bb87c3927c4a4c9d3
6
+ metadata.gz: 385e57f53836fb43de6f8497ca9c5bd86d2632a58ea33372854f8743143421066b24e8f68d8cd593d7a05780a61d198faaf2f9f0674ac6df2983c30f5913761e
7
+ data.tar.gz: 68ac61a6a5fecf04b715c626c7d98c9b0727b8bb1a84996625b75d878474218cd2dbaab5fb157ebde13ff622e5008e6c865b93a8793e6ba668045de62e7a15ac
@@ -163,9 +163,13 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
163
163
  ## Actions & Filters
164
164
  email_filters = Office::EmailFilter.active
165
165
  email_filters.each do |filter|
166
- if ( filter.from_regex.blank? || @message.from.match( filter.from_regex ) ) &&
167
- ( filter.body_regex.blank? || @message.part_html.match( filter.body_regex ) ) &&
168
- ( filter.subject_regex.blank? || @message.subject.match( filter.subject_regex ) )
166
+ if ( filter.from_regex.blank? || @message.from.match( filter.from_regex ) ) &&
167
+ ( filter.from_exact.blank? || @message.from.include?( filter.from_exact ) ) &&
168
+ # ( filter.body_regex.blank? || @message.part_html.match( filter.body_regex ) ) &&
169
+ ( filter.body_exact.blank? || @message.part_html.include?( filter.body_exact ) ) &&
170
+ ( filter.subject_regex.blank? || @message.subject.match( filter.subject_regex ) ) &&
171
+ ( filter.subject_exact.blank? || @message.subject.include?( filter.subject_exact ) )
172
+
169
173
  # || MiaTagger.analyze( @message.part_html, :is_spammy_recruite ).score > .5
170
174
 
171
175
  @message.apply_filter( filter )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.270
4
+ version: 0.1.8.271
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails