popper 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/popper/pop.rb +7 -5
- data/lib/popper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 899d43336ae319fa1483587328c0c1b7db5c9711
|
4
|
+
data.tar.gz: ec65c2417a0d82f6b2fc7bb471549cdd28385cc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5841012e7b9ddbd80d0cd99f0e46590eaf073c6ac1bd909098406a56c4a136aae7542a702d4ffb6e8f2c99dda362cac078955e30ac804b82b470a9acf4562cd5
|
7
|
+
data.tar.gz: 9123956b06d973d8a72c881646796e8f916293b874ac85490840205e9a2a28477e11c8ca86893454d0018df2b1245caecd8172bbe4e812fc30f85e2123c30643
|
data/lib/popper/pop.rb
CHANGED
@@ -7,8 +7,11 @@ module Popper
|
|
7
7
|
begin
|
8
8
|
Popper::Sync.synchronized do
|
9
9
|
Popper.configure.accounts.each do |account|
|
10
|
-
|
11
|
-
|
10
|
+
begin
|
11
|
+
pop(account)
|
12
|
+
rescue => e
|
13
|
+
Popper.log warn e
|
14
|
+
end
|
12
15
|
end
|
13
16
|
end
|
14
17
|
rescue Locked
|
@@ -34,9 +37,10 @@ module Popper
|
|
34
37
|
Popper.log.warn e
|
35
38
|
end
|
36
39
|
end
|
40
|
+
# write cache
|
41
|
+
last_uidl(account.name, current_uidls - error_uidls)
|
37
42
|
Popper.log.info "success popper #{account.name}"
|
38
43
|
end
|
39
|
-
current_uidls - error_uidls
|
40
44
|
end
|
41
45
|
|
42
46
|
def self.connection(account, &block)
|
@@ -49,8 +53,6 @@ module Popper
|
|
49
53
|
) do |pop|
|
50
54
|
block.call(pop)
|
51
55
|
end
|
52
|
-
rescue => e
|
53
|
-
Popper.log.warn e
|
54
56
|
end
|
55
57
|
|
56
58
|
def self.matching?(account, mail)
|
data/lib/popper/version.rb
CHANGED