ishapi 0.1.8.287 → 0.1.8.289
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|
@@ -89,8 +89,10 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
89
89
|
to: the_mail.to[0],
|
90
90
|
tos: the_mail.to,
|
91
91
|
|
92
|
+
cc: the_mail.cc[0],
|
92
93
|
ccs: the_mail.cc,
|
93
|
-
|
94
|
+
|
95
|
+
# bccs: the_mail.bcc,
|
94
96
|
})
|
95
97
|
if the_mail.body.preamble.present?
|
96
98
|
@message.preamble = the_mail.body.preamble
|
@@ -166,11 +168,11 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
166
168
|
## Actions & Filters
|
167
169
|
email_filters = Office::EmailFilter.active
|
168
170
|
email_filters.each do |filter|
|
169
|
-
if ( filter.from_regex.blank? || @message.from.match(
|
170
|
-
( filter.from_exact.blank? || @message.from
|
171
|
-
( filter.body_exact.blank? || @message.part_html.include?(
|
172
|
-
( filter.subject_regex.blank? || @message.subject.match(
|
173
|
-
( 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 ) )
|
174
176
|
|
175
177
|
# || MiaTagger.analyze( @message.part_html, :is_spammy_recruite ).score > .5
|
176
178
|
|
@@ -2,6 +2,7 @@
|
|
2
2
|
<ul>
|
3
3
|
<li><b>From:</b> <%= @msg.from %></li>
|
4
4
|
<li><b>To:</b> <%= @msg.to %></li>
|
5
|
+
<li><b>Cc:</b> <%= @msg.cc %></li>
|
5
6
|
<li><b>Subject:</b> <%= @msg.subject %></li>
|
6
7
|
<li><b>Date:</b> <%= @msg.date %></li>
|
7
8
|
<li><b>N Attachments:</b> <%= @msg.attachments.length %></li>
|
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.289
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|