rubymta 0.0.13 → 0.0.14

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: 2300f8a4d7ef99c5500ef87f19bb71f41b5c97da
4
- data.tar.gz: 096043e53d78adaa7c639dbe721f5a5e33c6c026
3
+ metadata.gz: a72d1a4230d77bdb5c749ec57da73a347f90b1d8
4
+ data.tar.gz: a489c579a7e349dd2ef556ac0d431cfaded35d61
5
5
  SHA512:
6
- metadata.gz: 44aff1177adcf639cc6c4b16ef5efe14f7fb65ea8b77ef6e60a47a5fa0a52b75a33e37f0236d54a8c5edfabfa1793d735eab7aee99c04cb5e386a94ff400b940
7
- data.tar.gz: d84934a81e7f623e57fb9b808231208fe0b99a46c7be36b57979af124b328196bb79178747f4b403ffe728a1137aa9f63b400c8b82564484b2cae612cd1b5633
6
+ metadata.gz: 74fa503dd6aa4e0ac0fd4a8b35f1e3defa8a89400d2763e5f561690890c3d9b3f1d0e7495072e8c99b375f4114e2b580bff4cd047c8cf405e3d2fe3bff333000
7
+ data.tar.gz: d402fb86f2d46cdc3b8013ea40909c8ea0ccacd0e731e46388d45579d55d649e470687455b3f5379f009d79b9e7bee379f8cd1a55f819016c40f9d671919ddb2
@@ -100,8 +100,7 @@ class ItemOfMail < Hash
100
100
  f.write("\n")
101
101
  text_out = text_in = text.join("\n")
102
102
  text_out, e, s = Open3.capture3("spamc", :stdin_data=>text_in) if defined?(SpamAssassinInstalled)
103
- LOG.error(self[:mail_id]) {e} unless e.empty?
104
- f.write(text_out)
103
+ f.write(text_out.utf8)
105
104
  end
106
105
  self[:saved] = true
107
106
  rescue => e
@@ -80,10 +80,10 @@ class Receiver
80
80
  when temp.nil?
81
81
  LOG.warn(@mail[:mail_id]) {"The client abruptly closed the connection"}
82
82
  text = nil
83
- when !temp.valid_encoding?
84
- LOG.warn(@mail[:mail_id]) {"The client sent non-UTF-8 text"}
85
- send_text("500 5.5.1 non-UTF-8 text detected")
86
- raise Quit
83
+ # when !temp.valid_encoding?
84
+ # LOG.warn(@mail[:mail_id]) {"The client sent non-UTF-8 text"}
85
+ # send_text("500 5.5.1 non-UTF-8 text detected")
86
+ # raise Quit
87
87
  else
88
88
  text = temp.chomp
89
89
  end
@@ -449,6 +449,11 @@ class Receiver
449
449
  break
450
450
  end
451
451
  break if text=="."
452
+ # if !text.valid_encoding?
453
+ # LOG.warn(@mail[:mail_id]) {"The client sent non-UTF-8 data"}
454
+ # send_text("500 5.5.1 non-UTF-8 data detected")
455
+ # raise Quit
456
+ # end
452
457
  lines << text
453
458
  end
454
459
 
@@ -1,5 +1,5 @@
1
1
  module Version
2
- VERSION = "0.0.13"
3
- MODIFIED = "2017-10-29"
2
+ VERSION = "0.0.14"
3
+ MODIFIED = "2017-11-01"
4
4
  end
5
5
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubymta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael J. Welch, Ph.D.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-29 00:00:00.000000000 Z
11
+ date: 2017-11-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: RubyMta is an experimental mail transport agent written in Ruby. See
14
14
  the README.