ishapi 0.1.8.234 → 0.1.8.237

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: 8a4f280f251b589d71f71681a7b8cf0f7190f832c438098e563a2a6a66b7ed55
4
- data.tar.gz: 367a8695d53eb591f0d13850421e8a352c3659048a06c468c4d27cdc2ca13793
3
+ metadata.gz: f5f0ab95302c104da9c107ec663b9f8f30cf625f45c540d22a79624f3d236914
4
+ data.tar.gz: 73b720a31cd638f64d4c8a8ded1ff52a49898425e57de368e1f2f6ec90d8d26c
5
5
  SHA512:
6
- metadata.gz: ac8e2582c2070a01b1bace975e9d46d414fc989f121a44ce0deced697343c4457efdd98c4fc605677bfd2ce8e26f98afbeefb1fea3477bc03e42518fd713f162
7
- data.tar.gz: 3e226d651570098359d11833b9583ef8057c2169b5c6d3359a93410188f10b7f6da4b53acdfcd52a1f3be49775c3f38d9f8c9eae28602b8cedc82cb5945bf5a6
6
+ metadata.gz: a017048d9ff90b645f78d38c9492815790cc375aa3a9be5f10242d7a2fcaad445856c88ecb2fd7fe785f8471a6311f9df3550ce9c7872f8b7fc15396b29410ee
7
+ data.tar.gz: b434ff8381dbff200cd14ded027dbd2572293b69f0b52fafb883a4b0505324443b0bbd81d21baabee5c302b4b79f6e648f8ea56b3bc2b61ca995901b40cc7b4c
@@ -12,7 +12,10 @@ module Ishapi
12
12
  def delete
13
13
  authorize! :email_conversations_delete, ::Ishapi
14
14
  convos = Office::EmailConversation.find params[:ids]
15
- convos.map &:destroy
15
+ outs = convos.map do |convo|
16
+ convo.add_tag( WpTag::EMAILTAG_TRASH )
17
+ end
18
+ flash[:notice] = "outcome: #{outs}"
16
19
  end
17
20
 
18
21
  end
@@ -96,7 +96,13 @@ class Ishapi::EmailMessageIntakeJob < Ishapi::ApplicationJob
96
96
 
97
97
  if the_mail.parts.length == 0
98
98
  body = the_mail.body.decoded
99
- @message.part_txt = body
99
+ if the_mail.content_type.include?('text/html')
100
+ @message.part_html = body
101
+ elsif the_mail.content_type.include?('text/plain')
102
+ @message.part_txt = body
103
+ else
104
+ throw "mail body of unknown type: #{the_mail.content_type}"
105
+ end
100
106
  end
101
107
 
102
108
  ## Conversation
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.234
4
+ version: 0.1.8.237
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox