action_mailer-logged_smtp_delivery 2.2.0 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_mailer/logged_smtp_delivery.rb +9 -4
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4538c4abed96561b7741b755fb4944ae62b500e35ec585f35bc4461cacadf7a9
|
4
|
+
data.tar.gz: 28b5fb7d0df5069f6b16813feeb945ca6cf6e805b5b98a83f29ac7ba038108e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dda7116bc36fc92845b8b4805a94cd8a72cbbde9ad162a3d3dd86c2f651fd91fa2dee23e56d4d6544df2b156fd4afc3e68f262d42870146f389e661b3ce5a078
|
7
|
+
data.tar.gz: b3dc1d58cf2b83e2292bb9c375e3a0e5368a4ddf7fc70ad73e32fcbc56e63503636db41d914c958a8003cba24d1013998bb8ec485e90ebe0cb871afd6463db0c
|
@@ -13,8 +13,8 @@ class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def deliver!(mail)
|
16
|
-
if
|
17
|
-
path =
|
16
|
+
if file_logger = settings[:mail_file_logger]
|
17
|
+
path = file_logger.log(mail.encoded)
|
18
18
|
log mail, "stored at #{path}"
|
19
19
|
end
|
20
20
|
|
@@ -22,8 +22,13 @@ class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
|
|
22
22
|
log mail, "sender: #{mail.sender}"
|
23
23
|
log mail, "destinations: #{mail.destinations.inspect}"
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
begin
|
26
|
+
self.response = super
|
27
|
+
log mail, "done #{response.inspect}"
|
28
|
+
rescue => e
|
29
|
+
logger.error("#{mail.message_id} exception #{e.inspect}")
|
30
|
+
raise
|
31
|
+
end
|
27
32
|
end
|
28
33
|
|
29
34
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: action_mailer-logged_smtp_delivery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Chapweske
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionmailer
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: mocha
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - ">="
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
117
131
|
description: ActionMailer SMTP delivery strategy with advanced logging and Bcc support
|
118
132
|
email:
|
119
133
|
executables: []
|