ish_models 0.0.33.295 → 0.0.33.296
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 +4 -4
- data/lib/ish/email_template.rb +3 -1
- data/lib/office/email_message.rb +8 -6
- 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: d06c52c4c68b449a8416eedfeb0da3aa210cc2e097bbbfc63a6436b9f1923522
|
|
4
|
+
data.tar.gz: 6b44f5a057acc1b6e47ac749e0019aacd482735a530d34265c5dd112cb7b47da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5b9564338cf5c8897e5fae2ffb0d053f6b3308edd080cb19f6ddd56ef92422db7984745cea0b141d9d76f82691437078251e7a92b50776854d41aeb2add8ce2a
|
|
7
|
+
data.tar.gz: 958c4ab9ae95202a172496651ba9ea5f8b6a0992cd3809a8a5e2f8827a3944cbf8edb8025a72ea3f8c2d5a9e40e7e2677735cdefc87b8473fb4518c86be0ff0a
|
data/lib/ish/email_template.rb
CHANGED
|
@@ -40,6 +40,8 @@ class ::Ish::EmailTemplate
|
|
|
40
40
|
'DemmiTV <hello@demmi.tv>',
|
|
41
41
|
'DemmiTV <no-reply@demmi.tv>',
|
|
42
42
|
|
|
43
|
+
'Victor Pudeyev <victor@fedfis.com>',
|
|
44
|
+
|
|
43
45
|
'Infinite Shelter <hello@infiniteshelter.com>',
|
|
44
46
|
'Infinite Shelter <no-reply@infiniteshelter.com>',
|
|
45
47
|
|
|
@@ -84,7 +86,7 @@ class ::Ish::EmailTemplate
|
|
|
84
86
|
<div><br></div>
|
|
85
87
|
<div>Regards,</div>
|
|
86
88
|
<div>-=----- >8 --</div>
|
|
87
|
-
<div>Victor Pudeyev<br>Director of Engineering<br><a href="mailto:victor@
|
|
89
|
+
<div>Victor Pudeyev<br>Director of Engineering<br><a href="mailto:victor@wasya.co" target="_blank">victor@wasya.co</a> | <a href="https://tidycal.com/wasya-co/30min" target="_blank">Book a chat</a><br></div>
|
|
88
90
|
</div><hr /><br /><br /><br />
|
|
89
91
|
AOL
|
|
90
92
|
|
data/lib/office/email_message.rb
CHANGED
|
@@ -40,6 +40,8 @@ class Office::EmailMessage
|
|
|
40
40
|
field :bcc, type: :string
|
|
41
41
|
field :bccs, type: Array, default: []
|
|
42
42
|
|
|
43
|
+
field :logs, type: Array, default: []
|
|
44
|
+
|
|
43
45
|
field :date, type: DateTime
|
|
44
46
|
def received_at
|
|
45
47
|
date
|
|
@@ -146,12 +148,12 @@ class Office::EmailMessage
|
|
|
146
148
|
churn_subpart( subpart )
|
|
147
149
|
end
|
|
148
150
|
else
|
|
149
|
-
attachment = Office::EmailAttachment.new({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
})
|
|
154
|
-
attachment.save
|
|
151
|
+
# attachment = Office::EmailAttachment.new({
|
|
152
|
+
# content: part.decoded,
|
|
153
|
+
# content_type: part.content_type,
|
|
154
|
+
# email_message: self,
|
|
155
|
+
# })
|
|
156
|
+
# attachment.save
|
|
155
157
|
|
|
156
158
|
if part.content_type.include?('text/html')
|
|
157
159
|
part_html = part.decoded
|