ishapi 0.1.8.234 → 0.1.8.235

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: 8a4f280f251b589d71f71681a7b8cf0f7190f832c438098e563a2a6a66b7ed55
4
- data.tar.gz: 367a8695d53eb591f0d13850421e8a352c3659048a06c468c4d27cdc2ca13793
3
+ metadata.gz: a99137025c2a51a037e486a1d83b58d5c78ca5c649321a084838a40091eade12
4
+ data.tar.gz: 5a3acd8b759ad65a7fa8133a58a115ea7b6308f788fb9cf46bd55bd4e6af5d4c
5
5
  SHA512:
6
- metadata.gz: ac8e2582c2070a01b1bace975e9d46d414fc989f121a44ce0deced697343c4457efdd98c4fc605677bfd2ce8e26f98afbeefb1fea3477bc03e42518fd713f162
7
- data.tar.gz: 3e226d651570098359d11833b9583ef8057c2169b5c6d3359a93410188f10b7f6da4b53acdfcd52a1f3be49775c3f38d9f8c9eae28602b8cedc82cb5945bf5a6
6
+ metadata.gz: a45d2b0bb0a39b606495666938cf3ea701743a7c1d3a7bc0fc0f81e846a2ce989db9e3b05ab330a46889f4875efe195ed39c831adf43802b9a06f225c485c194
7
+ data.tar.gz: 6c040942ac37a423ff53c0f01ef83fd536e97a65a38c3be186ac6326960b7bfb3f608fb988e6622e30bdad22efe31850981e1c7f6402f29bec6bebf942827be5
@@ -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.235
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox