mail-gpg 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/lib/mail/gpg/signed_part.rb +3 -0
- data/lib/mail/gpg/version.rb +1 -1
- data/test/message_test.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96edf0fbe3f22c01808d60328a9d316d4cab6588
|
4
|
+
data.tar.gz: dbe492f6351962e3696eb13a8185bc99f0ded52a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ef811441d350386921a18d46d5b4aff71867eacb346565a5a1583eb8e516c3f0643b065cb1e02cca46db7cfa0333b5ed82435aab6da6bed4a9ecf5b34c054aa
|
7
|
+
data.tar.gz: 2588e6bbce89a8dd1fde81c582352c40b694a8a9c1de1b71ec57fbbf50bbf75cb770f75da3b822e25034abace1d210958a557bf7b224e8e305cbcaf2c2e7887f
|
data/History.txt
CHANGED
data/lib/mail/gpg/signed_part.rb
CHANGED
@@ -23,6 +23,9 @@ module Mail
|
|
23
23
|
if disposition = cleartext_mail.content_disposition
|
24
24
|
content_disposition disposition
|
25
25
|
end
|
26
|
+
if id = cleartext_mail.header['Content-ID']
|
27
|
+
content_id id
|
28
|
+
end
|
26
29
|
|
27
30
|
# brute force approach to avoid messed up line endings that break
|
28
31
|
# signatures with Mail 2.7
|
data/lib/mail/gpg/version.rb
CHANGED
data/test/message_test.rb
CHANGED
@@ -92,6 +92,7 @@ class MessageTest < MailGpgTestCase
|
|
92
92
|
@attachment_data = "this is\n € not an image".force_encoding(Encoding::BINARY)
|
93
93
|
@mail.attachments['test.jpg'] = { mime_type: 'image/jpeg',
|
94
94
|
content: @attachment_data }
|
95
|
+
@mail.attachments['test.jpg'].header['Content-ID'] = '<image002.jpg@01D665C1.3F756500>'
|
95
96
|
|
96
97
|
@mail.deliver
|
97
98
|
@signed = Mail.new @mails.first.to_s
|
@@ -110,6 +111,7 @@ class MessageTest < MailGpgTestCase
|
|
110
111
|
assert attachment.attachment?
|
111
112
|
assert_equal "attachment; filename=test.jpg", attachment.content_disposition
|
112
113
|
assert_equal @attachment_data, attachment.body.to_s
|
114
|
+
assert_equal '<image002.jpg@01D665C1.3F756500>', attachment.header['Content-ID'].to_s
|
113
115
|
end
|
114
116
|
|
115
117
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mail-gpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jens Kraemer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mail
|