actionmailbox 7.0.4.3 → 7.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/action_mailbox/gem_version.rb +2 -2
- data/lib/action_mailbox/mail_ext/addresses.rb +15 -4
- metadata +19 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 61a218f9336cdf0d0d670d425862bb29d68393765f27ddb495a113ba53ac7eec
|
4
|
+
data.tar.gz: 2eeb613460724eb4b96023d76adb08fe7ddc9acb6afb6a7c3606f73c0a8ad44b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36b5c38c23dd189af7add6fbce12a86838043b68ae3aea4b435d258d82f8443df3335424d03b7635c088b997df9347bdcc7cc3eefd54786c8e68d80aaa5ef3aa
|
7
|
+
data.tar.gz: 034f9f3637d74843a321a3f8088a8c859aca6e8cb94b3f68e8ecc6e3129e4e55a9678112d2e9487daf076217b831b6c4c4d416f7710f02aaed3e127107ba7d2a
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Mail
|
4
4
|
class Message
|
5
5
|
def from_address
|
6
|
-
header[:from]&.
|
6
|
+
address_list(header[:from])&.addresses&.first
|
7
7
|
end
|
8
8
|
|
9
9
|
def recipients_addresses
|
@@ -11,19 +11,30 @@ module Mail
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def to_addresses
|
14
|
-
Array(header[:to]&.
|
14
|
+
Array(address_list(header[:to])&.addresses)
|
15
15
|
end
|
16
16
|
|
17
17
|
def cc_addresses
|
18
|
-
Array(header[:cc]&.
|
18
|
+
Array(address_list(header[:cc])&.addresses)
|
19
19
|
end
|
20
20
|
|
21
21
|
def bcc_addresses
|
22
|
-
Array(header[:bcc]&.
|
22
|
+
Array(address_list(header[:bcc])&.addresses)
|
23
23
|
end
|
24
24
|
|
25
25
|
def x_original_to_addresses
|
26
26
|
Array(header[:x_original_to]).collect { |header| Mail::Address.new header.to_s }
|
27
27
|
end
|
28
|
+
|
29
|
+
private
|
30
|
+
def address_list(obj)
|
31
|
+
if obj&.respond_to?(:element)
|
32
|
+
# Mail 2.8+
|
33
|
+
obj.element
|
34
|
+
else
|
35
|
+
# Mail <= 2.7.x
|
36
|
+
obj&.address_list
|
37
|
+
end
|
38
|
+
end
|
28
39
|
end
|
29
40
|
end
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionmailbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
- George Claghorn
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -17,70 +17,70 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 7.0.
|
20
|
+
version: 7.0.5
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 7.0.
|
27
|
+
version: 7.0.5
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: activerecord
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 7.0.
|
34
|
+
version: 7.0.5
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 7.0.
|
41
|
+
version: 7.0.5
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activestorage
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 7.0.
|
48
|
+
version: 7.0.5
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 7.0.
|
55
|
+
version: 7.0.5
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: activejob
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 7.0.
|
62
|
+
version: 7.0.5
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 7.0.
|
69
|
+
version: 7.0.5
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: actionpack
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - '='
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 7.0.
|
76
|
+
version: 7.0.5
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 7.0.
|
83
|
+
version: 7.0.5
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: mail
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,12 +206,12 @@ licenses:
|
|
206
206
|
- MIT
|
207
207
|
metadata:
|
208
208
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
209
|
-
changelog_uri: https://github.com/rails/rails/blob/v7.0.
|
210
|
-
documentation_uri: https://api.rubyonrails.org/v7.0.
|
209
|
+
changelog_uri: https://github.com/rails/rails/blob/v7.0.5/actionmailbox/CHANGELOG.md
|
210
|
+
documentation_uri: https://api.rubyonrails.org/v7.0.5/
|
211
211
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
212
|
-
source_code_uri: https://github.com/rails/rails/tree/v7.0.
|
212
|
+
source_code_uri: https://github.com/rails/rails/tree/v7.0.5/actionmailbox
|
213
213
|
rubygems_mfa_required: 'true'
|
214
|
-
post_install_message:
|
214
|
+
post_install_message:
|
215
215
|
rdoc_options: []
|
216
216
|
require_paths:
|
217
217
|
- lib
|
@@ -226,8 +226,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.4.
|
230
|
-
signing_key:
|
229
|
+
rubygems_version: 3.4.10
|
230
|
+
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: Inbound email handling framework.
|
233
233
|
test_files: []
|