carterdte_smtp_filter 0.0.3.3 → 0.0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/carterdte_smtp_filter/smtp_server.rb +5 -4
- data/lib/carterdte_smtp_filter/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2feb3ef02e29fc033c60918e937527f183fa6390
|
4
|
+
data.tar.gz: 43b02194907226b6b6327d8de4d680d2457171d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5d72986d1bc3e71b93b6e7b679d8cdff7d64f704fdfc4945a16ee31dcd192aa23023bc0ff58ed48fc1dda6cbae29d35740ace3568c491919a57980c70f9795e
|
7
|
+
data.tar.gz: 338621ccc25d50b9c4bfbc74b360ec687393f25f8b444d4e1e69322d1c016ec7c2cba1fe0e3704795c5ac761db33afbd63e44ffee89583278c16f052095403c5
|
@@ -12,16 +12,17 @@ module CarterdteSmtpFilter
|
|
12
12
|
|
13
13
|
def on_message_data_event(ctx)
|
14
14
|
message = CarterdteSmtpFilter::Message.new(ctx[:message][:data])
|
15
|
+
|
16
|
+
# Save a copy when testing
|
17
|
+
# /tmp/carterdte_smtp_filter/<message-id>
|
18
|
+
message.save_tmp if CarterdteSmtpFilter::Config::testing
|
19
|
+
|
15
20
|
# return the email back, and extract queue_id unless we are not
|
16
21
|
# working with Postfix
|
17
22
|
message.return_email unless CarterdteSmtpFilter::Config::stand_alone
|
18
23
|
|
19
24
|
# We send it to CarterDte App
|
20
25
|
CarterdteSmtpFilter::ApiClient.push message.to_json if message.has_dte?
|
21
|
-
|
22
|
-
# Save a copy when testing
|
23
|
-
# /tmp/carterdte_smtp_filter/<message-id>
|
24
|
-
message.save_tmp if CarterdteSmtpFilter::Config::testing
|
25
26
|
end
|
26
27
|
|
27
28
|
# get event before Connection
|