rubymta 0.0.15 → 0.0.16

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: 0b111a36b3145f824bf81193bb2814bea8ec8e96
4
- data.tar.gz: 981638f013c0d26b0cc09316041cfdc4e35c3334
3
+ metadata.gz: 21e90301e71f47d7688639e2274a3de5e48b6bfb
4
+ data.tar.gz: 0ebd722efb5d5d729171802dbd25cdfca218500b
5
5
  SHA512:
6
- metadata.gz: 11b8812e113d116da43c3778f72b655ac0e731fdcb98d147c6e3d352524d61dadb480447594748bec0bb38ba59733f2803941e3224abdf142bf295d6c3d12209
7
- data.tar.gz: f19e0dff3bc40cf2ccc26d92a4588a7057abcffb167bd4820ee9276e67c551b8be2f65558281431314c4c4456a572bfbe661c01629cdd73ba1622c1220eff071
6
+ metadata.gz: bc03e6ed1b3c8e8303173fe480be8962ba0f244d673d32a49b565025c9f96a35d566d5132e72f8c8b26f21e76cb0d77c20b8c8f4a13a9eceaacff913c3b0a702
7
+ data.tar.gz: 639f09f898661a3dffff2be7bffdb83f927df4e18f5e9402d5fdca79763b46af7ba7ef1cc91722d677793aacbc0ac483e1f9652637693a428710d0e75f8beaa8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # v0.0.16
2
+
3
+ * Removed the SpamAssassin check from the ItemOfMail class because I suspect Microsoft Outlook doesn't like the headers added by it.
4
+ * Added the SpamAssassin check into QueueRunner class just before local delivery only.
5
+
6
+
1
7
  # v0.0.15
2
8
 
3
9
  * Added a rescue for `Server::listening_thread`, at `getnameinfo` to catch errors where the IP address doesn't point to any DNS records. This error is ignored and `hostname` is set to `(none)`. No harm is done because the `hostname` is only used for log messages.
@@ -99,7 +99,6 @@ class ItemOfMail < Hash
99
99
  f.write(tmp)
100
100
  f.write("\n")
101
101
  text_out = text_in = text.join("\n")
102
- text_out, e, s = Open3.capture3("spamc", :stdin_data=>text_in) if defined?(SpamAssassinInstalled)
103
102
  f.write(text_out.utf8)
104
103
  end
105
104
  self[:saved] = true
@@ -124,6 +124,11 @@ class QueueRunner
124
124
  begin
125
125
  ssl_socket = TCPSocket.open('localhost',LocalLMTPPort)
126
126
  @connection = OpenSSL::SSL::SSLSocket.new(ssl_socket, $ctx);
127
+ if defined?(SpamAssassinInstalled) && SpamAssassinInstalled
128
+ text = mail[:data][:text].join(CRLF)
129
+ text, e, s = Open3.capture3("spamc", :stdin_data=>text)
130
+ mail[:data][:text] = text.split(CRLF)
131
+ end
127
132
  lmtp_delivery('localhost',LocalLMTPPort,mail,domain,parcels)
128
133
  mail.update_parcels(parcels)
129
134
  rescue Errno::ECONNREFUSED => e
@@ -1,5 +1,5 @@
1
1
  module Version
2
- VERSION = "0.0.15"
3
- MODIFIED = "2017-11-11"
2
+ VERSION = "0.0.16"
3
+ MODIFIED = "2017-11-13"
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.15
4
+ version: 0.0.16
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-11-11 00:00:00.000000000 Z
11
+ date: 2017-11-13 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.