actionmailbox 7.2.1.1 → 8.0.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -12
- 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: d12058df3b2d19b1e08c1de804ef09003980c1877624ce59ff994fc2a085c579
|
4
|
+
data.tar.gz: f1f801e02fef11d9971a7e54124d798ca37ef0aaac8049592aa2b4c8f89c5c1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29ed758f58e494b880d5787928c976cb4a8ef0325780208f4ae33f6b3ed2a718e952d31e32739f288a2224019e419c2f1f996f023e871ba6619b17dc34ad6d6f
|
7
|
+
data.tar.gz: a5c558d744c7e0c8aa5806a7f6a35fdc6188609686d2f4fa56a95decc5a3d25e55ecc6be9fcd4a148eb059d019dd17054734670f8fb2a605848df4d4a3d1e3e2
|
data/CHANGELOG.md
CHANGED
@@ -1,18 +1,9 @@
|
|
1
|
-
## Rails
|
1
|
+
## Rails 8.0.0.rc1 (October 19, 2024) ##
|
2
2
|
|
3
3
|
* No changes.
|
4
4
|
|
5
5
|
|
6
|
-
## Rails
|
6
|
+
## Rails 8.0.0.beta1 (September 26, 2024) ##
|
7
7
|
|
8
|
-
* No changes.
|
9
|
-
|
10
|
-
|
11
|
-
## Rails 7.2.0 (August 09, 2024) ##
|
12
|
-
|
13
|
-
* Fix all Action Mailbox database related models to respect
|
14
|
-
`ActiveRecord::Base.table_name_prefix` configuration.
|
15
|
-
|
16
|
-
*Chedli Bourguiba*
|
17
8
|
|
18
|
-
Please check [7-
|
9
|
+
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.rc1
|
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-10-
|
12
|
+
date: 2024-10-19 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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1
|
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.rc1/actionmailbox/CHANGELOG.md
|
169
|
+
documentation_uri: https://api.rubyonrails.org/v8.0.0.rc1/
|
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.rc1/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
|
- - ">="
|