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 +4 -4
- data/app/jobs/ishapi/email_message_intake_job.rb +7 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d08d69bbceb0955e2194960083a649395ae71dfd50f5868888d404632893d78a
|
4
|
+
data.tar.gz: 02b01369f8ab5e36b8aa39454d040c240681d87e11839b5ab5095c4072fb5144
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
167
|
-
( filter.
|
168
|
-
|
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.
|
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-
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|