rubymta 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/rubymta/item_of_mail.rb +0 -1
- data/lib/rubymta/queue_runner.rb +5 -0
- data/lib/rubymta/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e90301e71f47d7688639e2274a3de5e48b6bfb
|
4
|
+
data.tar.gz: 0ebd722efb5d5d729171802dbd25cdfca218500b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
data/lib/rubymta/item_of_mail.rb
CHANGED
@@ -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
|
data/lib/rubymta/queue_runner.rb
CHANGED
@@ -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
|
data/lib/rubymta/version.rb
CHANGED
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.
|
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
|
+
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.
|