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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62b5362e85b38c7c385a84c56270dea80710517a
4
- data.tar.gz: 78e3dacfe29c126d91089b380083d32edfd35d9f
3
+ metadata.gz: 96edf0fbe3f22c01808d60328a9d316d4cab6588
4
+ data.tar.gz: dbe492f6351962e3696eb13a8185bc99f0ded52a
5
5
  SHA512:
6
- metadata.gz: 36cadc855dc15bc8dbab934a44602d97c8a8831c575970ed61c4e3c3cce7bf86ac2d2cc956b910d0916aa53dd1702af001d57986d055e048e12f4868833c7931
7
- data.tar.gz: d3a34b8a693ebf7b4e52aaff895af7275b01b335eac7c537443bab7eed61ceee1b86b5d7266fc35941e482d7ddd4e2044a42b8ad60f0e2189a4c7763bcd93c55
6
+ metadata.gz: 6ef811441d350386921a18d46d5b4aff71867eacb346565a5a1583eb8e516c3f0643b065cb1e02cca46db7cfa0333b5ed82435aab6da6bed4a9ecf5b34c054aa
7
+ data.tar.gz: 2588e6bbce89a8dd1fde81c582352c40b694a8a9c1de1b71ec57fbbf50bbf75cb770f75da3b822e25034abace1d210958a557bf7b224e8e305cbcaf2c2e7887f
@@ -1,3 +1,8 @@
1
+ == 0.4.4 2020-07-30
2
+
3
+ * preserve Content-ID header of signed parts (relevant for inline images in
4
+ HTML mails)
5
+
1
6
  == 0.4.3 2020-02-12
2
7
 
3
8
  * fix bad signatures of some mails with Mail 2.7.1 by always enforcing
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Mail
2
2
  module Gpg
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -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.3
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-02-12 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail