ishapi 0.1.8.308 → 0.1.8.309
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 +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2c27b0e76f833a8c226f0d3b8e2ddde4e79de43410a27d54b17fd7428bb2ea
|
4
|
+
data.tar.gz: bdfca7a6011021de3e65cbef27bfd89bd0149d249e0f500c8b8f03234126769b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f5c7c049720e975ab0dd41b8704058065b97e1e0e0cdac3d251f92776d771404f4ff3f6897008f09c0b597348e3af0d715028ef98bc0f829074b6a7284bd082
|
7
|
+
data.tar.gz: 05b52de931750893643cd4a14ebcb6894111602e1f1eadbaa255a34cfbb8b003429837e6f91cf6340995cd815c6b83110c90bbd74b2a3bc92447ce9791fe6a9e
|
@@ -11,7 +11,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
11
11
|
|
12
12
|
=begin
|
13
13
|
|
14
|
-
object_key = '
|
14
|
+
object_key = 'b7t9ns5iqood9edbng1qqh89f2cishcviv1l2ro1'
|
15
15
|
MsgStub.where({ object_key: object_key }).delete
|
16
16
|
|
17
17
|
stub = MsgStub.create!({ object_key: object_key })
|
@@ -96,6 +96,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
96
96
|
the_mail.parts.each do |part|
|
97
97
|
@message.churn_subpart( part )
|
98
98
|
end
|
99
|
+
@message.save
|
99
100
|
|
100
101
|
if the_mail.parts.length == 0
|
101
102
|
body = the_mail.body.decoded.encode('UTF-8', invalid: :replace, undef: :replace, replace: '?')
|
@@ -108,6 +109,7 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
|
|
108
109
|
else
|
109
110
|
@message.logs.push "mail body of unknown type: #{the_mail.content_type}"
|
110
111
|
end
|
112
|
+
@message.save
|
111
113
|
end
|
112
114
|
|
113
115
|
## Attachments
|