actionmailbox 7.1.5.1 → 7.2.3

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: f80dcf6d717fdfe10bdcdc1e5ec14b3442609cc43fa965265373e7369dbdb720
4
- data.tar.gz: 79f41b4f059a815cb5c1870a269cadcdd256f6a6fc56dbb6f19e2e10c5306e62
3
+ metadata.gz: f5f5c33a8cf94809b8da7f344a57f0d98d6c4adbc9e2e2b9c60d57f540cbc3fd
4
+ data.tar.gz: e847f23e337194a54180eee8cd8ca66396645e052c5cbe05e6ea7e1c2c22dc2d
5
5
  SHA512:
6
- metadata.gz: 6b90cc6366e57a27f8008a02d011d8d84f668400ab91d8d6a5d6ba63726f43639e72cb1ad3530f7d867ce21f1b80698b1ce9fb4ce8c71c4e53a568675d4b9375
7
- data.tar.gz: d61480cb04e14e70fc4cba8fcf873444162eb03603af101dd3062ee246adaaf66f6c43f23acf36ccf45e7f00d52cb039351a24cb71c0b420f495a168e54ff06d
6
+ metadata.gz: 14b1293b8672aa489cfcc5b2316b8e683fb601af18aa242c6227c398ad4330eff79aa0dfa03e149ad3dbe436575b26c4215effb9e45ffaecd7ebdd80b0573c08
7
+ data.tar.gz: 469d393aa185a4dae717e458e8b22426436e402f545109fa6b7ca8f7c0b61221d08cc64f4dd3a7959b19fb613491622107adfef84e8d21cb13a5b40daae0726e
data/CHANGELOG.md CHANGED
@@ -1,96 +1,43 @@
1
- ## Rails 7.1.5.1 (December 10, 2024) ##
1
+ ## Rails 7.2.3 (October 28, 2025) ##
2
2
 
3
3
  * No changes.
4
4
 
5
5
 
6
- ## Rails 7.1.5 (October 30, 2024) ##
6
+ ## Rails 7.2.2.2 (August 13, 2025) ##
7
7
 
8
8
  * No changes.
9
9
 
10
10
 
11
- ## Rails 7.1.4.2 (October 23, 2024) ##
11
+ ## Rails 7.2.2.1 (December 10, 2024) ##
12
12
 
13
13
  * No changes.
14
14
 
15
15
 
16
- ## Rails 7.1.4.1 (October 15, 2024) ##
16
+ ## Rails 7.2.2 (October 30, 2024) ##
17
17
 
18
18
  * No changes.
19
19
 
20
20
 
21
- ## Rails 7.1.4 (August 22, 2024) ##
21
+ ## Rails 7.2.1.2 (October 23, 2024) ##
22
22
 
23
23
  * No changes.
24
24
 
25
25
 
26
- ## Rails 7.1.3.4 (June 04, 2024) ##
26
+ ## Rails 7.2.1.1 (October 15, 2024) ##
27
27
 
28
28
  * No changes.
29
29
 
30
30
 
31
- ## Rails 7.1.3.3 (May 16, 2024) ##
31
+ ## Rails 7.2.1 (August 22, 2024) ##
32
32
 
33
33
  * No changes.
34
34
 
35
35
 
36
- ## Rails 7.1.3.2 (February 21, 2024) ##
36
+ ## Rails 7.2.0 (August 09, 2024) ##
37
37
 
38
- * No changes.
39
-
40
-
41
- ## Rails 7.1.3.1 (February 21, 2024) ##
42
-
43
- * No changes.
44
-
45
-
46
- ## Rails 7.1.3 (January 16, 2024) ##
47
-
48
- * No changes.
49
-
50
-
51
- ## Rails 7.1.2 (November 10, 2023) ##
52
-
53
- * No changes.
54
-
55
-
56
- ## Rails 7.1.1 (October 11, 2023) ##
57
-
58
- * No changes.
59
-
60
-
61
- ## Rails 7.1.0 (October 05, 2023) ##
62
-
63
- * No changes.
64
-
65
-
66
- ## Rails 7.1.0.rc2 (October 01, 2023) ##
67
-
68
- * No changes.
69
-
70
-
71
- ## Rails 7.1.0.rc1 (September 27, 2023) ##
72
-
73
- * No changes.
74
-
75
-
76
- ## Rails 7.1.0.beta1 (September 13, 2023) ##
77
-
78
- * Added `bounce_now_with` to send the bounce email without going through a mailer queue.
79
-
80
- *Ronan Limon Duparcmeur*
81
-
82
- * Support configured primary key types in generated migrations.
83
-
84
- *Nishiki Liu*
85
-
86
- * Fixed ingress controllers' ability to accept emails that contain no UTF-8 encoded parts.
87
-
88
- Fixes #46297.
89
-
90
- *Jan Honza Sterba*
91
-
92
- * Add X-Forwarded-To addresses to recipients.
38
+ * Fix all Action Mailbox database related models to respect
39
+ `ActiveRecord::Base.table_name_prefix` configuration.
93
40
 
94
- *Andrew Stewart*
41
+ *Chedli Bourguiba*
95
42
 
96
- Please check [7-0-stable](https://github.com/rails/rails/blob/7-0-stable/actionmailbox/CHANGELOG.md) for previous changes.
43
+ Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-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
  end
63
63
  end
@@ -45,9 +45,9 @@ module ActionMailbox
45
45
  #
46
46
  # Built-in ingress commands are available for these popular SMTP servers:
47
47
  #
48
- # - Exim (<tt>bin/rails action_mailbox:ingress:exim)
49
- # - Postfix (<tt>bin/rails action_mailbox:ingress:postfix)
50
- # - Qmail (<tt>bin/rails action_mailbox:ingress:qmail)
48
+ # - Exim (<tt>bin/rails action_mailbox:ingress:exim</tt>)
49
+ # - Postfix (<tt>bin/rails action_mailbox:ingress:postfix</tt>)
50
+ # - Qmail (<tt>bin/rails action_mailbox:ingress:qmail</tt>)
51
51
  class Ingresses::Relay::InboundEmailsController < ActionMailbox::BaseController
52
52
  before_action :authenticate_by_password, :require_valid_rfc822_message
53
53
 
@@ -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
@@ -25,12 +25,10 @@ module ActionMailbox
25
25
  # inbound_email.mail.from # => 'david@loudthinking.com'
26
26
  # inbound_email.source # Returns the full rfc822 source of the email as text
27
27
  class InboundEmail < Record
28
- self.table_name = "action_mailbox_inbound_emails"
29
-
30
28
  include Incineratable, MessageId, Routable
31
29
 
32
30
  has_one_attached :raw_email, service: ActionMailbox.storage_service
33
- enum status: %i[ pending processing delivered failed bounced ]
31
+ enum :status, %i[ pending processing delivered failed bounced ]
34
32
 
35
33
  def mail
36
34
  @mail ||= Mail.from_source(source)
@@ -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 = 7
11
- MINOR = 1
12
- TINY = 5
13
- PRE = "1"
11
+ MINOR = 2
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -32,7 +32,7 @@ module Mail
32
32
 
33
33
  private
34
34
  def address_list(obj)
35
- if obj&.respond_to?(:element)
35
+ if obj.respond_to?(:element)
36
36
  # Mail 2.8+
37
37
  obj.element
38
38
  else
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionmailbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.5.1
4
+ version: 7.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  - George Claghorn
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2024-12-10 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
@@ -17,126 +16,84 @@ dependencies:
17
16
  requirements:
18
17
  - - '='
19
18
  - !ruby/object:Gem::Version
20
- version: 7.1.5.1
19
+ version: 7.2.3
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - '='
26
25
  - !ruby/object:Gem::Version
27
- version: 7.1.5.1
26
+ version: 7.2.3
28
27
  - !ruby/object:Gem::Dependency
29
28
  name: activerecord
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
31
  - - '='
33
32
  - !ruby/object:Gem::Version
34
- version: 7.1.5.1
33
+ version: 7.2.3
35
34
  type: :runtime
36
35
  prerelease: false
37
36
  version_requirements: !ruby/object:Gem::Requirement
38
37
  requirements:
39
38
  - - '='
40
39
  - !ruby/object:Gem::Version
41
- version: 7.1.5.1
40
+ version: 7.2.3
42
41
  - !ruby/object:Gem::Dependency
43
42
  name: activestorage
44
43
  requirement: !ruby/object:Gem::Requirement
45
44
  requirements:
46
45
  - - '='
47
46
  - !ruby/object:Gem::Version
48
- version: 7.1.5.1
47
+ version: 7.2.3
49
48
  type: :runtime
50
49
  prerelease: false
51
50
  version_requirements: !ruby/object:Gem::Requirement
52
51
  requirements:
53
52
  - - '='
54
53
  - !ruby/object:Gem::Version
55
- version: 7.1.5.1
54
+ version: 7.2.3
56
55
  - !ruby/object:Gem::Dependency
57
56
  name: activejob
58
57
  requirement: !ruby/object:Gem::Requirement
59
58
  requirements:
60
59
  - - '='
61
60
  - !ruby/object:Gem::Version
62
- version: 7.1.5.1
61
+ version: 7.2.3
63
62
  type: :runtime
64
63
  prerelease: false
65
64
  version_requirements: !ruby/object:Gem::Requirement
66
65
  requirements:
67
66
  - - '='
68
67
  - !ruby/object:Gem::Version
69
- version: 7.1.5.1
68
+ version: 7.2.3
70
69
  - !ruby/object:Gem::Dependency
71
70
  name: actionpack
72
71
  requirement: !ruby/object:Gem::Requirement
73
72
  requirements:
74
73
  - - '='
75
74
  - !ruby/object:Gem::Version
76
- version: 7.1.5.1
75
+ version: 7.2.3
77
76
  type: :runtime
78
77
  prerelease: false
79
78
  version_requirements: !ruby/object:Gem::Requirement
80
79
  requirements:
81
80
  - - '='
82
81
  - !ruby/object:Gem::Version
83
- version: 7.1.5.1
82
+ version: 7.2.3
84
83
  - !ruby/object:Gem::Dependency
85
84
  name: mail
86
85
  requirement: !ruby/object:Gem::Requirement
87
86
  requirements:
88
87
  - - ">="
89
88
  - !ruby/object:Gem::Version
90
- version: 2.7.1
89
+ version: 2.8.0
91
90
  type: :runtime
92
91
  prerelease: false
93
92
  version_requirements: !ruby/object:Gem::Requirement
94
93
  requirements:
95
94
  - - ">="
96
95
  - !ruby/object:Gem::Version
97
- version: 2.7.1
98
- - !ruby/object:Gem::Dependency
99
- name: net-imap
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :runtime
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: net-pop
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :runtime
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: net-smtp
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :runtime
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: '0'
96
+ version: 2.8.0
140
97
  description: Receive and process incoming emails in Rails applications.
141
98
  email:
142
99
  - david@loudthinking.com
@@ -207,12 +164,11 @@ licenses:
207
164
  - MIT
208
165
  metadata:
209
166
  bug_tracker_uri: https://github.com/rails/rails/issues
210
- changelog_uri: https://github.com/rails/rails/blob/v7.1.5.1/actionmailbox/CHANGELOG.md
211
- documentation_uri: https://api.rubyonrails.org/v7.1.5.1/
167
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.3/actionmailbox/CHANGELOG.md
168
+ documentation_uri: https://api.rubyonrails.org/v7.2.3/
212
169
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
213
- source_code_uri: https://github.com/rails/rails/tree/v7.1.5.1/actionmailbox
170
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.3/actionmailbox
214
171
  rubygems_mfa_required: 'true'
215
- post_install_message:
216
172
  rdoc_options: []
217
173
  require_paths:
218
174
  - lib
@@ -220,15 +176,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
220
176
  requirements:
221
177
  - - ">="
222
178
  - !ruby/object:Gem::Version
223
- version: 2.7.0
179
+ version: 3.1.0
224
180
  required_rubygems_version: !ruby/object:Gem::Requirement
225
181
  requirements:
226
182
  - - ">="
227
183
  - !ruby/object:Gem::Version
228
184
  version: '0'
229
185
  requirements: []
230
- rubygems_version: 3.5.22
231
- signing_key:
186
+ rubygems_version: 3.6.9
232
187
  specification_version: 4
233
188
  summary: Inbound email handling framework.
234
189
  test_files: []