ishapi 0.1.8.286 → 0.1.8.288

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: f5c0832ec3c2109607e7d612d9daf38dbff6e2b710879710f71e358ed5304ea3
4
- data.tar.gz: e2ad530fe9863aa53e532b1e37ab628a179b49da40a5edb31fd4c0abe080e721
3
+ metadata.gz: 6ba469ac34840ff8880b66c86b7e4d2dccafe640504c96315f72367b8679a54f
4
+ data.tar.gz: 42e6201e75a1f00b75ef4429af775c9ad4540353f09b9f2110f20709dfe7606a
5
5
  SHA512:
6
- metadata.gz: 15b2df35cdc3dde6cece928bdf20427f4603b82de04e52cb9ca901ba1ebade45d338487d80de8013f87fc3a9225158d6ee46dafdf041bcfdd0f003cee23fc46d
7
- data.tar.gz: 6cdaba9a607c484cff7a481e2edbe50071a3ec3ea3881392487f8406f85a0bebacfda86842a2bb83ed6297692d9a509a64dcad54f66cc2ec338076e83e5b36c1
6
+ metadata.gz: 13eb3007cd43422a646b0c1f80a0d3a25536603b049a3f5e1b6046db4290fb224a36071c990e75d94a14f82a3cfd7939bb557f1b371391b0f17faf99429865ee
7
+ data.tar.gz: c56e323b3586e57922e8072086487a674b6c47ed8e5b228742059eac0a58970b0fe9c6ead91ced970b7d1d59bc46cae76b3eca6d07c0af94328579281eede491
@@ -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
- bccs: the_mail.bcc,
94
+
95
+ # bccs: the_mail.bcc,
94
96
  })
95
97
  if the_mail.body.preamble.present?
96
98
  @message.preamble = the_mail.body.preamble
@@ -154,10 +156,14 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
154
156
  conv.update_attributes({
155
157
  state: Conv::STATE_UNREAD,
156
158
  latest_at: the_mail.date || Time.now.to_datetime,
157
- lead_ids: conv.lead_ids.push( lead.id ).uniq, ## @TODO: change, this is an association now
158
- # wp_term_ids: ( [ email_inbox_tag_id ] + conv.wp_term_ids + stub.wp_term_ids ).uniq,
159
+ from_emails: conv.from_emails.push( the_mail.from[0] ).uniq,
159
160
  })
160
161
  conv.add_tag( ::WpTag::INBOX )
162
+ conv_lead_tie = Office::EmailConversationLead.find_or_create_by({
163
+ lead_id: lead.id,
164
+ email_conversation_id: conv.id,
165
+ })
166
+
161
167
 
162
168
  ## Actions & Filters
163
169
  email_filters = Office::EmailFilter.active
@@ -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.286
4
+ version: 0.1.8.288
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-23 00:00:00.000000000 Z
11
+ date: 2023-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails