ishapi 0.1.8.224 → 0.1.8.226

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: 1057e3a8d47ccb9a4c515bfe4b6db8f1b8a9c98bd15f389bd3a05f6f6c35f5ca
4
- data.tar.gz: '019414d090c7b26c4226612ef4dace0ca8782a2dec00bb2f473d0559bb12c14c'
3
+ metadata.gz: '08f76fb6660101b8dc3a094ed09385796a0daf9e1902382fa11f59cd4720bba3'
4
+ data.tar.gz: c7e2003493c0fc07c65b67b7a28d76a889c4e6f894cd645afeb941c5a29146c6
5
5
  SHA512:
6
- metadata.gz: 5f739ac7ffa01d05f5912408ae86cd907e7b93ec5cb8aa73e0a8022b0b1ab744b2a1b431b1aaae8c65beb779293c1a4f1954cb9188e5b7572d59a6aecc371933
7
- data.tar.gz: e79cbab0ff9170b2b4e73bf016c472ad6fc5d7acdbba545b04a98f4ee9b117cb7982ef00ac9bfeb1f1959087b140125862ce938730278574869d63254c047087
6
+ metadata.gz: 6ffe3656e44c4aa750648d3403824936d6c3f0c06b9e23c904839d0c88dd02db1d8cf8c6200fe4cf9468063be6107c107948406a102954e6e453c771da8a2d97
7
+ data.tar.gz: 7bbe8d993cae95069b3c4767ee60443e3bd39db16292be6616c17a5cd5af34653f18473e24f009a0f4131ddcdc43c5151e5dbe00fe315269ecc7b30d352e8355
@@ -94,6 +94,11 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
94
94
  churn_subpart( @message, part )
95
95
  end
96
96
 
97
+ if the_mail.parts.length == 0
98
+ body = the_mail.body.decoded
99
+ @message.part_txt = body
100
+ end
101
+
97
102
  ## Conversation
98
103
  if in_reply_to_id
99
104
  in_reply_to_msg = ::Office::EmailMessage.where({ message_id: in_reply_to_id }).first
@@ -1,3 +1,3 @@
1
1
 
2
2
  %html
3
- %body{ style: 'background: white' }= raw @msg.part_html
3
+ %body{ style: 'background: white' }= raw @msg.part_html || @msg.part_txt
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.224
4
+ version: 0.1.8.226
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox