received 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/received/lmtp.rb CHANGED
@@ -71,7 +71,7 @@ module Received
71
71
  end
72
72
  when :data
73
73
  if ev == ".\r\n"
74
- mail = {:from => @from, :rcpt => @rcpt, :body => @body.join}
74
+ mail = {:from => @from, :rcpt => @rcpt, :body => @body.join.force_encoding('BINARY')}
75
75
  if @conn.mail_received(mail)
76
76
  @rcpt.size.times {ok}
77
77
  else
@@ -1,3 +1,3 @@
1
1
  module Received
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
data/spec/lmtp_spec.rb CHANGED
@@ -85,7 +85,6 @@ describe Received::LMTP do
85
85
  conn.stub(:send_data)
86
86
  conn.stub(:close_connection_after_writing)
87
87
  conn.should_receive(:mail_received) do |mail|
88
- puts "RECEIVED '#{mail.inspect}'"
89
88
  mail[:from].should be_empty
90
89
  end
91
90
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: received
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-01 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: daemons