actionmailbox 8.0.2 → 8.1.0.beta1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09b660cf4dda8545e1743e0b34ccb56484a8660e2e457e2e47b566b891ca7a8d'
4
- data.tar.gz: e53ad209a6da219816ef783da5e634be10b373b3864cca82b0f2d32ecdc2e0ec
3
+ metadata.gz: 993a45cfce02d3a866e3651af0e751d116f03b689804daf8ebea2319ddbc17fb
4
+ data.tar.gz: 119678fbdda1e192928505d6c18e7e1a4fc8fb15a92e5d212529709c52f37e9e
5
5
  SHA512:
6
- metadata.gz: e5157f23f00614d66bcef06ba98298ae83937d870fde888624ed10f7d01b1d851d20f026e2b0a59d79e4ee9ee876db5d004e3c8f534e1639b75baf3209fd4cff
7
- data.tar.gz: 8e69ed3873a0fdfbf853f98289dc2c6442cf26561a30a4e5d3074be8cc41d53cd0a2d1067e824edaca1b99e3706848d5426f65f0978437d3772c098fe8b73954
6
+ metadata.gz: e6034fc571e9bc8c6fe98dc512ea1d130ef8191d12edeb97bd24b4379d4889e6d2a21a0c32ad30fae7e1f91bb02487626dfa088c83d8497bea94823c749673e4
7
+ data.tar.gz: 69499bf3a46c387b2f529181feafaebc66f906cd476b221d0ac7d21c68e53fc9d6a994ab27a88bc63be3f93531ffdf22f5a2ee02343755535188ec48524dea58
data/CHANGELOG.md CHANGED
@@ -1,39 +1,7 @@
1
- ## Rails 8.0.2 (March 12, 2025) ##
1
+ ## Rails 8.1.0.beta1 (September 04, 2025) ##
2
2
 
3
- * No changes.
3
+ * Add `reply_to_address` extension method on `Mail::Message`.
4
4
 
5
+ *Mr0grog*
5
6
 
6
- ## Rails 8.0.2 (March 12, 2025) ##
7
-
8
- * No changes.
9
-
10
-
11
- ## Rails 8.0.1 (December 13, 2024) ##
12
-
13
- * No changes.
14
-
15
-
16
- ## Rails 8.0.0.1 (December 10, 2024) ##
17
-
18
- * No changes.
19
-
20
-
21
- ## Rails 8.0.0 (November 07, 2024) ##
22
-
23
- * No changes.
24
-
25
-
26
- ## Rails 8.0.0.rc2 (October 30, 2024) ##
27
-
28
- * No changes.
29
-
30
-
31
- ## Rails 8.0.0.rc1 (October 19, 2024) ##
32
-
33
- * No changes.
34
-
35
-
36
- ## Rails 8.0.0.beta1 (September 26, 2024) ##
37
-
38
-
39
- Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionmailbox/CHANGELOG.md) for previous changes.
7
+ Please check [8-0-stable](https://github.com/rails/rails/blob/8-0-stable/actionmailbox/CHANGELOG.md) for previous changes.
@@ -22,7 +22,7 @@ module ActionMailbox
22
22
  head :ok
23
23
  rescue JSON::ParserError => error
24
24
  logger.error error.message
25
- head :unprocessable_entity
25
+ head ActionDispatch::Constants::UNPROCESSABLE_CONTENT
26
26
  end
27
27
 
28
28
  def health_check
@@ -57,7 +57,7 @@ module ActionMailbox
57
57
  When configuring your Postmark inbound webhook, be sure to check the box
58
58
  labeled "Include raw email content in JSON payload".
59
59
  MESSAGE
60
- head :unprocessable_entity
60
+ head ActionDispatch::Constants::UNPROCESSABLE_CONTENT
61
61
  end
62
62
 
63
63
  private
@@ -55,7 +55,7 @@ module ActionMailbox
55
55
  if request.body
56
56
  ActionMailbox::InboundEmail.create_and_extract_message_id! request.body.read
57
57
  else
58
- head :unprocessable_entity
58
+ head ActionDispatch::Constants::UNPROCESSABLE_CONTENT
59
59
  end
60
60
  end
61
61
 
@@ -52,7 +52,7 @@ module ActionMailbox
52
52
  ActionMailbox::InboundEmail.create_and_extract_message_id! mail
53
53
  rescue JSON::ParserError => error
54
54
  logger.error error.message
55
- head :unprocessable_entity
55
+ head ActionDispatch::Constants::UNPROCESSABLE_CONTENT
56
56
  end
57
57
 
58
58
  private
@@ -29,7 +29,7 @@ module ActionMailbox
29
29
  initializer "action_mailbox.config" do
30
30
  config.after_initialize do |app|
31
31
  ActionMailbox.logger = app.config.action_mailbox.logger || Rails.logger
32
- ActionMailbox.incinerate = app.config.action_mailbox.incinerate.nil? ? true : app.config.action_mailbox.incinerate
32
+ ActionMailbox.incinerate = app.config.action_mailbox.incinerate.nil? || app.config.action_mailbox.incinerate
33
33
  ActionMailbox.incinerate_after = app.config.action_mailbox.incinerate_after || 30.days
34
34
  ActionMailbox.queues = app.config.action_mailbox.queues || {}
35
35
  ActionMailbox.ingress = app.config.action_mailbox.ingress
@@ -8,9 +8,9 @@ module ActionMailbox
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 8
11
- MINOR = 0
12
- TINY = 2
13
- PRE = nil
11
+ MINOR = 1
12
+ TINY = 0
13
+ PRE = "beta1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -6,6 +6,10 @@ module Mail
6
6
  address_list(header[:from])&.addresses&.first
7
7
  end
8
8
 
9
+ def reply_to_address
10
+ address_list(header[:reply_to])&.addresses&.first
11
+ end
12
+
9
13
  def recipients_addresses
10
14
  to_addresses + cc_addresses + bcc_addresses + x_original_to_addresses + x_forwarded_to_addresses
11
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.2
4
+ version: 8.1.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  - George Claghorn
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-03-12 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 8.0.2
19
+ version: 8.1.0.beta1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 8.0.2
26
+ version: 8.1.0.beta1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 8.0.2
33
+ version: 8.1.0.beta1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 8.0.2
40
+ version: 8.1.0.beta1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activestorage
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 8.0.2
47
+ version: 8.1.0.beta1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 8.0.2
54
+ version: 8.1.0.beta1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: activejob
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 8.0.2
61
+ version: 8.1.0.beta1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 8.0.2
68
+ version: 8.1.0.beta1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: actionpack
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 8.0.2
75
+ version: 8.1.0.beta1
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 8.0.2
82
+ version: 8.1.0.beta1
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: mail
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -164,10 +164,10 @@ licenses:
164
164
  - MIT
165
165
  metadata:
166
166
  bug_tracker_uri: https://github.com/rails/rails/issues
167
- changelog_uri: https://github.com/rails/rails/blob/v8.0.2/actionmailbox/CHANGELOG.md
168
- documentation_uri: https://api.rubyonrails.org/v8.0.2/
167
+ changelog_uri: https://github.com/rails/rails/blob/v8.1.0.beta1/actionmailbox/CHANGELOG.md
168
+ documentation_uri: https://api.rubyonrails.org/v8.1.0.beta1/
169
169
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
170
- source_code_uri: https://github.com/rails/rails/tree/v8.0.2/actionmailbox
170
+ source_code_uri: https://github.com/rails/rails/tree/v8.1.0.beta1/actionmailbox
171
171
  rubygems_mfa_required: 'true'
172
172
  rdoc_options: []
173
173
  require_paths:
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubygems_version: 3.6.2
186
+ rubygems_version: 3.6.9
187
187
  specification_version: 4
188
188
  summary: Inbound email handling framework.
189
189
  test_files: []