em-imap 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of em-imap might be problematic. Click here for more details.
- data/lib/em-imap/client.rb +5 -4
- metadata +7 -7
data/lib/em-imap/client.rb
CHANGED
@@ -257,13 +257,13 @@ module EventMachine
|
|
257
257
|
# @succeed A list of message sequence numbers.
|
258
258
|
#
|
259
259
|
def search(*args)
|
260
|
-
search_internal(
|
260
|
+
search_internal("SEARCH", *args)
|
261
261
|
end
|
262
262
|
|
263
263
|
# The same as search, but succeeding with a list of UIDs not sequence numbers.
|
264
264
|
#
|
265
265
|
def uid_search(*args)
|
266
|
-
search_internal(
|
266
|
+
search_internal("UID SEARCH", *args)
|
267
267
|
end
|
268
268
|
|
269
269
|
# SORT and THREAD (like SEARCH) from http://tools.ietf.org/search/rfc5256
|
@@ -504,8 +504,9 @@ module EventMachine
|
|
504
504
|
end
|
505
505
|
|
506
506
|
def search_internal(command, *args)
|
507
|
-
command
|
508
|
-
|
507
|
+
collect_untagged_responses('SEARCH', command, *normalize_search_criteria(args)).transform do |untagged_responses|
|
508
|
+
untagged_responses.last.data
|
509
|
+
end
|
509
510
|
end
|
510
511
|
|
511
512
|
# Recursively find all the message sets in the arguments and convert them so that
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-imap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-03 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
16
|
-
requirement: &
|
16
|
+
requirement: &22042360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *22042360
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: deferrable_gratification
|
27
|
-
requirement: &
|
27
|
+
requirement: &22041860 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *22041860
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rspec
|
38
|
-
requirement: &
|
38
|
+
requirement: &22041400 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *22041400
|
47
47
|
description: Allows you to connect to an IMAP4rev1 server in a non-blocking fashion.
|
48
48
|
email:
|
49
49
|
- conrad@rapportive.com
|