rubymta 0.0.17 → 0.0.18

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
- SHA1:
3
- metadata.gz: 51892b11fbf1a02e1f6e981c83f85e3cfe62e7d9
4
- data.tar.gz: c3de0f435ac9b2e97c8fd6dc5de1a2f82ff8080f
2
+ SHA256:
3
+ metadata.gz: 6b1e113a06ec76df5c004833056ec7d2bf41093b55f82c79d9dfd4eb44303782
4
+ data.tar.gz: 8572ffa52e494db9b8b423653383bda27209655949aea05d4a52d64617a4f0df
5
5
  SHA512:
6
- metadata.gz: f545ab6156a4026acfec46a67d2401ad56b5a689860a3043189d71975a984c3b70a2a8c581618fb74694be31bf8b3201724d1049a2feb179b0470480559dcde8
7
- data.tar.gz: 3fc12c1ec8a51fc1f0629cf0def9c6800606a11790ee67b0575cc9b70483242d94e79c7369c8d7996e42ab4af22f6c404ececd4c88ca5b9846f9ae2d0d0429e4
6
+ metadata.gz: b46058554a0f2269088498612dfd1f3480f9f7aef01bcde012c0405a39b211d9b597497dfff15cdded3f14feb9137685a321d0624c4d6632101f50e6019f5e3b
7
+ data.tar.gz: 73e31d0803c31a285dc52a9912d9cd55f5d02be4e3e569fa9dce0d9bee6f51be33f5b5bc12d8b318cfbcad37fd50856230e2f063798afc6fc58dbfa037ed8c07
@@ -1,3 +1,12 @@
1
+ # v0.0.18
2
+
3
+ * Changed Fixnum to Integer. Fixnum was depreciated in Ruby 2.4. Fixed a Ruby bug in newer Ruby releases which affects OpenSSL (https://bugs.ruby-lang.org/issues/13328)
4
+
5
+ # v0.0.17
6
+
7
+ * Changed the RSET command to reset the command sequence to the point between the STARTTLS and the MAIL FROM command. It also deletes any MAIL FROM, RCPT TO, and DATA from the incoming mail. A RSET command right after a EHLO, HELO, STARTTLS is the equivalent of a NOOP.
8
+
9
+
1
10
  # v0.0.16
2
11
 
3
12
  * Removed the SpamAssassin check from the ItemOfMail class because I suspect Microsoft Outlook doesn't like the headers added by it.
@@ -21,7 +21,7 @@ class String
21
21
 
22
22
  end
23
23
 
24
- class Fixnum
24
+ class Integer
25
25
 
26
26
  # this is used to convert a number into segments of
27
27
  # base 62 (or 36) for use in creating email IDs
@@ -54,21 +54,13 @@ class Contact < Hash
54
54
  # Count the violation and reset the 'expires_at' time -- Also
55
55
  # counts the times this IP has been locked out -- only count
56
56
  # one violation and one lock per instantiation
57
- #
58
- # The UseIPTables feature requires the 'at' app ("apt install at")
59
57
  if !inhibited?
60
58
  self[:violations]+=1
61
59
  @inhibit = true
62
60
  if prohibited?
63
61
  self[:locks] += 1
64
- self[:expires_at] = t = Time.now + ProhibitedSeconds
62
+ self[:expires_at] = Time.now + ProhibitedSeconds
65
63
  modify
66
- if defined?(UseIPTables) && UseIPTables
67
- puts insert = "iptables -I INPUT -s #{self[:remote_ip]} -j DROP"
68
- puts drop = "echo \"iptables -D INPUT -s #{self[:remote_ip]} -j DROP\" | at #{t.strftime("%H:%M")} #{t.strftime("%Y-%m-%d")}"
69
- `iptables -I INPUT -s #{self[:remote_ip]} -j DROP`
70
- `echo "iptables -D INPUT -s #{self[:remote_ip]} -j DROP" | at #{t.strftime("%H:%M")} #{t.strftime("%Y-%m-%d")}`
71
- end
72
64
  raise Quit # force quit: some senders try to keep going
73
65
  end
74
66
  modify
@@ -514,7 +514,10 @@ class Receiver
514
514
  return msg if !msg.nil?
515
515
  end
516
516
 
517
- @level = 0
517
+ @level = 2 if @level>2
518
+ @mail.delete(:mailfrom)
519
+ @mail.delete(:rcptto)
520
+ @mail.delete(:data)
518
521
  return "250 2.0.0 Reset OK"
519
522
  end
520
523
 
@@ -601,7 +604,7 @@ class Receiver
601
604
  def starttls(value)
602
605
  send_text("220 2.0.0 TLS go ahead")
603
606
  LOG.info(@mail[:mail_id]) {"<-> (handshake)"} if LogReceiverConversation
604
- conn = @connection.clone # save the unencrypted connection in case of error
607
+ conn = @connection.deepclone # save the unencrypted connection in case of error
605
608
  begin
606
609
  @connection.accept
607
610
  @mail[:encrypted] = @encrypted = true
@@ -1,5 +1,5 @@
1
1
  module Version
2
- VERSION = "0.0.17"
3
- MODIFIED = "2017-11-30"
2
+ VERSION = "0.0.18"
3
+ MODIFIED = "2018-11-09"
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.17
4
+ version: 0.0.18
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-30 00:00:00.000000000 Z
11
+ date: 2018-11-09 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.
@@ -53,7 +53,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  version: '0'
54
54
  requirements: []
55
55
  rubyforge_project:
56
- rubygems_version: 2.5.2
56
+ rubygems_version: 2.7.8
57
57
  signing_key:
58
58
  specification_version: 4
59
59
  summary: A Ruby Gem providing a complete Mail Transport Agent package.