wco_email 0.1.1.75 → 0.1.1.77
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/wco_email/logs.scss +6 -0
- data/app/assets/stylesheets/wco_email/messages.scss +8 -3
- data/app/controllers/wco_email/email_filters_controller.rb +1 -1
- data/app/controllers/wco_email/messages_controller.rb +11 -0
- data/app/views/wco_email/messages/_meta.haml +8 -4
- data/app/views/wco_email/messages/show.haml +5 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52038e34d498579e3f5dd95657b60505e36bf3837c89a252b1ba37550a101a59
|
4
|
+
data.tar.gz: 0b4625fb6079e260b8bb5adf6a834ea9fecb3505092c9b4ce1114830a60b380a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a702be39b4ce58cf3794353505689f54b3bf1a64772f1c492d284d72982caf951a0ea4cc76485083c3ae1e30b4bce385ef0775c15ae00fe0fed419f48325495
|
7
|
+
data.tar.gz: 0a594716aaa81794af5c06424b28218946b2146a4c4e2048e7a0737fe497cfdaa4b67c329c4565ddbc485e17dce1b4759ad0506a11a6b6e89a194abcd5ba8652
|
@@ -6,16 +6,21 @@
|
|
6
6
|
}
|
7
7
|
|
8
8
|
.Meta {
|
9
|
+
> ul {
|
10
|
+
list-style-type: none;
|
11
|
+
}
|
9
12
|
ul {
|
10
13
|
margin: 0;
|
11
14
|
padding: 0;
|
12
|
-
|
15
|
+
}
|
16
|
+
}
|
13
17
|
|
14
|
-
|
18
|
+
.messages--meta {
|
19
|
+
> ul {
|
20
|
+
> li {
|
15
21
|
border-left: 3px solid var(--wco-color-2);
|
16
22
|
padding-left: 0.5em;
|
17
23
|
margin-bottom: 0.5em;
|
18
24
|
}
|
19
|
-
|
20
25
|
}
|
21
26
|
}
|
@@ -5,6 +5,17 @@ class WcoEmail::MessagesController < WcoEmail::ApplicationController
|
|
5
5
|
|
6
6
|
def show
|
7
7
|
@message = WcoEmail::Message.find params[:id]
|
8
|
+
|
9
|
+
@client ||= Aws::S3::Client.new({
|
10
|
+
region: ::S3_CREDENTIALS[:region_ses],
|
11
|
+
access_key_id: ::S3_CREDENTIALS[:access_key_id_ses],
|
12
|
+
secret_access_key: ::S3_CREDENTIALS[:secret_access_key_ses],
|
13
|
+
})
|
14
|
+
stub = @message.stub
|
15
|
+
raw = @client.get_object( bucket: stub.bucket, key: stub.object_key ).body.read
|
16
|
+
raw = raw.encode('utf-8', invalid: :replace, undef: :replace, replace: '_' )
|
17
|
+
@the_mail = Mail.new( raw )
|
18
|
+
|
8
19
|
authorize! :show, @message
|
9
20
|
end
|
10
21
|
|
@@ -1,15 +1,19 @@
|
|
1
1
|
|
2
|
-
.d-inline-block
|
3
|
-
%i.fa.fa-compress.collapse-expand
|
2
|
+
.d-inline-block
|
3
|
+
%i.fa.fa-compress.collapse-expand#messageMeta
|
4
4
|
Meta
|
5
|
-
.messages--meta.flex-row
|
5
|
+
.Meta.messages--meta.flex-row
|
6
6
|
|
7
7
|
%ul
|
8
8
|
%li <b>froms:</b> #{message.froms}
|
9
9
|
%li <b>tos:</b> #{message.tos}
|
10
10
|
%li <b>ccs:</b> #{message.ccs}
|
11
11
|
%li <b>bccs:</b> #{message.bccs}
|
12
|
-
%li
|
12
|
+
%li
|
13
|
+
<b>logs:</b>
|
14
|
+
%ul.Logs
|
15
|
+
- message.logs.each do |log|
|
16
|
+
%li= log
|
13
17
|
%ul
|
14
18
|
%li
|
15
19
|
<b>date:</b> #{message.date}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
.messages-show
|
2
|
+
.messages-show.maxwidth
|
3
3
|
%h5
|
4
4
|
Message
|
5
5
|
<b>Subject:</b>
|
@@ -10,4 +10,8 @@
|
|
10
10
|
%iframe.message-iframe{ src: message_iframe_path(@message) }
|
11
11
|
= render '/wco_email/contexts/form_reply', lead_id: @message.lead_id, message: @message, ctx: WcoEmail::Context.new({ from_email: @message.to&.downcase, subject: @message.subject, email_template_id: ET.find_by( slug: 'blank').id })
|
12
12
|
|
13
|
+
= @message.inspect
|
14
|
+
%hr
|
15
|
+
%pre
|
16
|
+
= raw @the_mail.body.decoded
|
13
17
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.77
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07
|
11
|
+
date: 2024-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|
@@ -306,6 +306,7 @@ files:
|
|
306
306
|
- app/assets/stylesheets/wco_email/application.scss
|
307
307
|
- app/assets/stylesheets/wco_email/contexts.scss
|
308
308
|
- app/assets/stylesheets/wco_email/conversations.scss
|
309
|
+
- app/assets/stylesheets/wco_email/logs.scss
|
309
310
|
- app/assets/stylesheets/wco_email/messages.scss
|
310
311
|
- app/assets/stylesheets/wco_email/tags.scss
|
311
312
|
- app/controllers/wco_email/api_controller.rb
|