actionmailbox 7.2.2 → 8.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -26
- data/app/controllers/action_mailbox/ingresses/postmark/inbound_emails_controller.rb +8 -1
- data/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb +1 -1
- data/app/views/rails/conductor/action_mailbox/inbound_emails/new.html.erb +1 -1
- data/app/views/rails/conductor/action_mailbox/inbound_emails/sources/new.html.erb +1 -1
- data/lib/action_mailbox/gem_version.rb +4 -4
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e75805ebb1ec7368d26763c58ae3fb21455d774d8ce88c71fbb6782db2c273f
|
4
|
+
data.tar.gz: fc3cc7bb0b49c49dc0d488be1b2da66c9dfa3d0440c646dc3ee9f07a66a03286
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58f8fcd6bea46b41c2e11639da20298c1aa773b6c4fbe3274ef330e3f697534ae54af0e73b5cc27f0a01a8062aef013b5eebf76c96e065aefb9854ebd3d5130a
|
7
|
+
data.tar.gz: 41dcbc810dc4fb45f80a355647e2796ab938f16bed8ef073a8163ae5a4308d9318aee54d2e9264b15e5363b41c1fa6b2d6fe7ce177bdc0c9c53448b894bd432c
|
data/CHANGELOG.md
CHANGED
@@ -1,28 +1,4 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 8.0.0.beta1 (September 26, 2024) ##
|
2
2
|
|
3
|
-
* No changes.
|
4
3
|
|
5
|
-
|
6
|
-
## Rails 7.2.1.2 (October 23, 2024) ##
|
7
|
-
|
8
|
-
* No changes.
|
9
|
-
|
10
|
-
|
11
|
-
## Rails 7.2.1.1 (October 15, 2024) ##
|
12
|
-
|
13
|
-
* No changes.
|
14
|
-
|
15
|
-
|
16
|
-
## Rails 7.2.1 (August 22, 2024) ##
|
17
|
-
|
18
|
-
* No changes.
|
19
|
-
|
20
|
-
|
21
|
-
## Rails 7.2.0 (August 09, 2024) ##
|
22
|
-
|
23
|
-
* Fix all Action Mailbox database related models to respect
|
24
|
-
`ActiveRecord::Base.table_name_prefix` configuration.
|
25
|
-
|
26
|
-
*Chedli Bourguiba*
|
27
|
-
|
28
|
-
Please check [7-1-stable](https://github.com/rails/rails/blob/7-1-stable/actionmailbox/CHANGELOG.md) for previous changes.
|
4
|
+
Please check [7-2-stable](https://github.com/rails/rails/blob/7-2-stable/actionmailbox/CHANGELOG.md) for previous changes.
|
@@ -49,7 +49,7 @@ module ActionMailbox
|
|
49
49
|
param_encoding :create, "RawEmail", Encoding::ASCII_8BIT
|
50
50
|
|
51
51
|
def create
|
52
|
-
ActionMailbox::InboundEmail.create_and_extract_message_id!
|
52
|
+
ActionMailbox::InboundEmail.create_and_extract_message_id! mail
|
53
53
|
rescue ActionController::ParameterMissing => error
|
54
54
|
logger.error <<~MESSAGE
|
55
55
|
#{error.message}
|
@@ -59,5 +59,12 @@ module ActionMailbox
|
|
59
59
|
MESSAGE
|
60
60
|
head :unprocessable_entity
|
61
61
|
end
|
62
|
+
|
63
|
+
private
|
64
|
+
def mail
|
65
|
+
params.require("RawEmail").tap do |raw_email|
|
66
|
+
raw_email.prepend("X-Original-To: ", params.require("OriginalRecipient"), "\n") if params.key?("OriginalRecipient")
|
67
|
+
end
|
68
|
+
end
|
62
69
|
end
|
63
70
|
end
|
@@ -31,7 +31,7 @@ module Rails
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def mail_params
|
34
|
-
params.
|
34
|
+
params.expect(mail: [:from, :to, :cc, :bcc, :x_original_to, :in_reply_to, :subject, :body, attachments: []])
|
35
35
|
end
|
36
36
|
|
37
37
|
def create_inbound_email(mail)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= form_with(url: main_app.rails_conductor_inbound_email_sources_path, local: true) do |form| %>
|
6
6
|
<div>
|
7
7
|
<%= form.label :source, "Source" %><br>
|
8
|
-
<%= form.
|
8
|
+
<%= form.textarea :source, size: "80x60" %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<%= form.submit "Deliver inbound email" %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionmailbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 8.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-09-26 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:
|
20
|
+
version: 8.0.0.beta1
|
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:
|
27
|
+
version: 8.0.0.beta1
|
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:
|
34
|
+
version: 8.0.0.beta1
|
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:
|
41
|
+
version: 8.0.0.beta1
|
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:
|
48
|
+
version: 8.0.0.beta1
|
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:
|
55
|
+
version: 8.0.0.beta1
|
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:
|
62
|
+
version: 8.0.0.beta1
|
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:
|
69
|
+
version: 8.0.0.beta1
|
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:
|
76
|
+
version: 8.0.0.beta1
|
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:
|
83
|
+
version: 8.0.0.beta1
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: mail
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -165,10 +165,10 @@ licenses:
|
|
165
165
|
- MIT
|
166
166
|
metadata:
|
167
167
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
168
|
-
changelog_uri: https://github.com/rails/rails/blob/
|
169
|
-
documentation_uri: https://api.rubyonrails.org/
|
168
|
+
changelog_uri: https://github.com/rails/rails/blob/v8.0.0.beta1/actionmailbox/CHANGELOG.md
|
169
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.beta1/
|
170
170
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
171
|
-
source_code_uri: https://github.com/rails/rails/tree/
|
171
|
+
source_code_uri: https://github.com/rails/rails/tree/v8.0.0.beta1/actionmailbox
|
172
172
|
rubygems_mfa_required: 'true'
|
173
173
|
post_install_message:
|
174
174
|
rdoc_options: []
|
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
178
178
|
requirements:
|
179
179
|
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version: 3.
|
181
|
+
version: 3.2.0
|
182
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - ">="
|