luggage 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -1
- data/lib/luggage/mailbox_query_builder.rb +12 -5
- data/lib/luggage/version.rb +1 -1
- 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: 56d02cbdf3e91765d32a9e9e31d1044f3bc2205f
|
4
|
+
data.tar.gz: 39548bc74936a200a7b63c8c8ddaad8b59e1119a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84ee01e2b3bd73119fddf71f3cc4b8ef0ea3a7cc0dbf5935867e7128b5974af1363627c5c24dcd497c9f9de5f3f0fa40220797fbaa0baf4dd2429c981c24b690
|
7
|
+
data.tar.gz: 1eb4a73055793e3b0fd091586d5887ac628e1165cef0b0cd4c0bb5e409bc744fb5af27cc7fe6b21b39f076c9b62ce9cf1f42692e64768605314b1c28b97d882a
|
data/CHANGES.md
CHANGED
@@ -51,7 +51,7 @@ module Luggage
|
|
51
51
|
def messages
|
52
52
|
@messages ||= message_ids.map {|message_id| Message.new(connection, mailbox, :message_id => message_id)}
|
53
53
|
end
|
54
|
-
|
54
|
+
|
55
55
|
def inspect
|
56
56
|
"#<Luggage::MailboxQueryBuilder server: \"#{host}\", mailbox: \"#{mailbox.name}\", query: #{query}>"
|
57
57
|
end
|
@@ -68,10 +68,17 @@ module Luggage
|
|
68
68
|
end
|
69
69
|
|
70
70
|
def message_ids
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
71
|
+
@message_ids ||= begin
|
72
|
+
field = "BODY[HEADER.FIELDS (Message-ID)]"
|
73
|
+
|
74
|
+
if uids.empty?
|
75
|
+
[]
|
76
|
+
else
|
77
|
+
connection.uid_fetch(uids, field).map do |resp|
|
78
|
+
$1 if resp[:attr][field] =~ /(<\S*@\S*>)/
|
79
|
+
end.compact
|
80
|
+
end
|
81
|
+
end
|
75
82
|
end
|
76
83
|
end
|
77
84
|
end
|
data/lib/luggage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luggage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Michael
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mail
|