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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1699ef6ff638d24b0d24f643277f0dbbedf4ff46
4
- data.tar.gz: 690459bda2766c9fe319cdf92ac075476d0df1f8
3
+ metadata.gz: 2feb3ef02e29fc033c60918e937527f183fa6390
4
+ data.tar.gz: 43b02194907226b6b6327d8de4d680d2457171d8
5
5
  SHA512:
6
- metadata.gz: 1fbceb2d3343370b1665f9e4dacac9750ed96403241850e053496491b58cfe61cc8949de9153b1cbdfd72ed37453e371c2152d5a1b37287ce8850a7e977409ac
7
- data.tar.gz: e507a7618bc8adf47bb843c8a5fd25097026e6ecfe2d7d6e5cca24323e3a939cd9aa60856f22cf2c6aa419152f8f0f3179de55f6e5f33992606b7305ad89b042
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
@@ -1,3 +1,3 @@
1
1
  module CarterdteSmtpFilter
2
- VERSION = "0.0.3.3"
2
+ VERSION = "0.0.3.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: carterdte_smtp_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.3
4
+ version: 0.0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna