ishapi 0.1.8.241 → 0.1.8.242
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0432395c7876153064c35c9c289c2442d2a425e52e954d5e51395e1c0e5d2bff'
|
4
|
+
data.tar.gz: f33e32b3dc91ca4f4289082639c7af54f4ff0c02a98053f5ecb356bad27f18c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5fef0cdd135e1bbe0679c2c0b3d271a19f7da7b76bb96e5f2fa72edba50572c709e3202bfef63088609e8b77b1853454db0dc93485cfd2f8a87e0f25674116f
|
7
|
+
data.tar.gz: f493726454f20993e09e88518a99c9f3c976538dacbd8c10588f9e170b51a1ba0b37e947431fd03595c06ff11f8c78b2836928d61bb4bdf714838e14a20aead7
|
@@ -23,8 +23,8 @@ module Ishapi
|
|
23
23
|
authorize! :email_conversations_delete, ::Ishapi
|
24
24
|
convos = Office::EmailConversation.find params[:ids]
|
25
25
|
outs = convos.map do |convo|
|
26
|
-
convo.add_tag( WpTag::
|
27
|
-
convo.remove_tag( WpTag::
|
26
|
+
convo.add_tag( WpTag::TRASH )
|
27
|
+
convo.remove_tag( WpTag::INBOX )
|
28
28
|
end
|
29
29
|
flash[:notice] = "outcome: #{outs}"
|
30
30
|
render json: { status: :ok }
|
@@ -15,6 +15,8 @@ Ishapi::EmailMessageIntakeJob.perform_now( stub.id.to_s )
|
|
15
15
|
## 2023-03-02 _vp_ Continue
|
16
16
|
## 2023-03-07 _vp_ Continue
|
17
17
|
##
|
18
|
+
## class name: EIJ
|
19
|
+
##
|
18
20
|
class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
19
21
|
|
20
22
|
# include Sidekiq::Worker ## From: https://stackoverflow.com/questions/59114063/sidekiq-options-giving-sidekiqworker-cannot-be-included-in-an-activejob-for
|
@@ -65,7 +67,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
65
67
|
the_mail = Mail.new(_mail)
|
66
68
|
message_id = the_mail.header['message-id'].decoded
|
67
69
|
in_reply_to_id = the_mail.header['in-reply-to']&.to_s
|
68
|
-
email_inbox_tag_id = WpTag.emailtag(WpTag::INBOX)
|
70
|
+
email_inbox_tag_id = WpTag.emailtag(WpTag::INBOX).id
|
69
71
|
|
70
72
|
@message = ::Office::EmailMessage.where( message_id: message_id ).first
|
71
73
|
@message ||= ::Office::EmailMessage.new
|