net-imap 0.6.6 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.simplecov +0 -2
- data/Gemfile +3 -3
- data/README.md +50 -24
- data/Rakefile +54 -4
- data/lib/net/imap/command_data.rb +13 -10
- data/lib/net/imap/config/attr_accessors.rb +2 -2
- data/lib/net/imap/config/attr_type_coercion.rb +14 -26
- data/lib/net/imap/config.rb +63 -3
- data/lib/net/imap/esearch_result.rb +2 -2
- data/lib/net/imap/fetch_data.rb +5 -5
- data/lib/net/imap/response_data.rb +79 -79
- data/lib/net/imap/response_parser/parser_utils.rb +1 -1
- data/lib/net/imap/response_parser.rb +2 -1
- data/lib/net/imap/sasl/client_adapter.rb +6 -6
- data/lib/net/imap/search_result.rb +4 -6
- data/lib/net/imap/sequence_set.rb +413 -52
- data/lib/net/imap/utils.rb +49 -0
- data/lib/net/imap.rb +195 -46
- data/rakelib/rdoc.rake +24 -0
- metadata +3 -2
|
@@ -64,12 +64,12 @@ module Net
|
|
|
64
64
|
def authenticate(...) AuthenticationExchange.authenticate(self, ...) end
|
|
65
65
|
|
|
66
66
|
##
|
|
67
|
-
# method: sasl_ir_capable?
|
|
67
|
+
# :method: sasl_ir_capable?
|
|
68
68
|
# Do the protocol, server, and client all support an initial response?
|
|
69
69
|
def_delegator :client, :sasl_ir_capable?
|
|
70
70
|
|
|
71
71
|
##
|
|
72
|
-
# method: auth_capable?
|
|
72
|
+
# :method: auth_capable?
|
|
73
73
|
# call-seq: auth_capable?(mechanism)
|
|
74
74
|
#
|
|
75
75
|
# Does the server advertise support for the +mechanism+?
|
|
@@ -94,12 +94,12 @@ module Net
|
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
##
|
|
97
|
-
# method: host
|
|
97
|
+
# :method: host
|
|
98
98
|
# The hostname to which the client connected.
|
|
99
99
|
def_delegator :client, :host
|
|
100
100
|
|
|
101
101
|
##
|
|
102
|
-
# method: port
|
|
102
|
+
# :method: port
|
|
103
103
|
# The destination port to which the client connected.
|
|
104
104
|
def_delegator :client, :port
|
|
105
105
|
|
|
@@ -108,12 +108,12 @@ module Net
|
|
|
108
108
|
def response_errors; [] end
|
|
109
109
|
|
|
110
110
|
##
|
|
111
|
-
# method: drop_connection
|
|
111
|
+
# :method: drop_connection
|
|
112
112
|
# Drop the connection gracefully, sending a "LOGOUT" command as needed.
|
|
113
113
|
def_delegator :client, :drop_connection
|
|
114
114
|
|
|
115
115
|
##
|
|
116
|
-
# method: drop_connection!
|
|
116
|
+
# :method: drop_connection!
|
|
117
117
|
# Drop the connection abruptly, closing the socket without logging out.
|
|
118
118
|
def_delegator :client, :drop_connection!
|
|
119
119
|
|
|
@@ -73,15 +73,13 @@ module Net
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# Hash equality. Unlike #==, order will be taken into account.
|
|
76
|
-
def hash
|
|
77
|
-
return super if modseq.nil?
|
|
78
|
-
[super, self.class, modseq].hash
|
|
79
|
-
end
|
|
76
|
+
def hash = [SearchResult, modseq, super].hash
|
|
80
77
|
|
|
81
78
|
# Hash equality. Unlike #==, order will be taken into account.
|
|
82
79
|
def eql?(other)
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
SearchResult === other &&
|
|
81
|
+
modseq == other.modseq &&
|
|
82
|
+
super
|
|
85
83
|
end
|
|
86
84
|
|
|
87
85
|
# Returns a string that represents the SearchResult.
|