received 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/received/backend/mongodb.rb +1 -1
- data/lib/received/version.rb +1 -1
- metadata +3 -3
@@ -21,7 +21,7 @@ module Received
|
|
21
21
|
# @return [ObjectId] object_id
|
22
22
|
def store(mail)
|
23
23
|
mail = mail.merge(:ts => Time.now.to_i, :body => BSON::Binary.new(mail[:body]))
|
24
|
-
@coll.insert(mail, :
|
24
|
+
@coll.insert(mail, :w => 1, :fsync => true).tap do |result|
|
25
25
|
notify_observers(:after_save, result) if result
|
26
26
|
end
|
27
27
|
end
|
data/lib/received/version.rb
CHANGED
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.5.
|
4
|
+
version: 0.5.1
|
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:
|
12
|
+
date: 2013-03-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: daemons
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 1.8.
|
124
|
+
rubygems_version: 1.8.23
|
125
125
|
signing_key:
|
126
126
|
specification_version: 3
|
127
127
|
summary: Receive mail from Postfix and store it somewhere
|