@@ -72,7 +72,7 @@ class IgnoredResponse < UntaggedResponse
72
72
# unknown extensions to response types without a well-defined extension
73
73
# grammar.
74
74
#
75
- # See also: UnparsedNumericResponseData
75
+ # See also: UnparsedNumericResponseData, ExtensionData, IgnoredResponse
76
76
class UnparsedData < Struct . new ( :unparsed_data )
77
77
##
78
78
# method: unparsed_data
@@ -88,7 +88,7 @@ class UnparsedData < Struct.new(:unparsed_data)
88
88
# Net::IMAP::UnparsedNumericResponseData represents data for unhandled
89
89
# response types with a numeric prefix. See the documentation for #number.
90
90
#
91
- # See also: UnparsedData
91
+ # See also: UnparsedData, ExtensionData, IgnoredResponse
92
92
class UnparsedNumericResponseData < Struct . new ( :number , :unparsed_data )
93
93
##
94
94
# method: number
@@ -107,6 +107,23 @@ class UnparsedNumericResponseData < Struct.new(:number, :unparsed_data)
107
107
# The unparsed data, not including #number or UntaggedResponse#name.
108
108
end
109
109
110
+ # **Note:** This represents an intentionally _unstable_ API. Where
111
+ # instances of this class are returned, future releases may return a
112
+ # different (incompatible) object <em>without deprecation or warning</em>.
113
+ #
114
+ # Net::IMAP::ExtensionData represents data that is parsable according to the
115
+ # forward-compatible extension syntax in RFC3501, RFC4466, or RFC9051, but
116
+ # isn't directly known or understood by Net::IMAP yet.
117
+ #
118
+ # See also: UnparsedData, UnparsedNumericResponseData, IgnoredResponse
119
+ class ExtensionData < Struct . new ( :data )
120
+ ##
121
+ # method: data
122
+ # :call-seq: data -> string
123
+ #
124
+ # The parsed extension data.
125
+ end
126
+
110
127
# Net::IMAP::TaggedResponse represents tagged responses.
111
128
#
112
129
# The server completion result response indicates the success or
0 commit comments