@@ -68,6 +68,11 @@ class IMAP < Protocol
68
68
# extensions, begin with <tt>"\"</tt>. Net::IMAP returns all mailbox
69
69
# attributes as symbols, without the <tt>"\"</tt> prefix.
70
70
#
71
+ # Mailbox name attributes are not case-sensitive. <em>The current
72
+ # implementation</em> normalizes mailbox attribute case using
73
+ # String#capitalize, such as +:Noselect+ (not +:NoSelect+). The constants
74
+ # (such as NO_SELECT) can also be used for comparison. The contants have
75
+ # been defined both with and without underscores between words.
71
76
#
72
77
# <em>The descriptions here were copied from</em> {[RFC-9051 §
73
78
# 7.3.1]}[https://www.rfc-editor.org/rfc/rfc9051.html#section-7.3.1].
@@ -97,19 +102,19 @@ class IMAP < Protocol
97
102
#
98
103
# The client must treat the presence of the +\NonExistent+ attribute as if the
99
104
# +\NoSelect+ attribute was also sent by the server
100
- NONEXISTENT = :NonExistent
105
+ NONEXISTENT = :Nonexistent
101
106
102
107
# Mailbox attribute indicating it is not possible for any child levels of
103
108
# hierarchy to exist under this name; no child levels exist now and none can
104
109
# be created in the future children.
105
110
#
106
111
# The client must treat the presence of the +\NoInferiors+ attribute as if the
107
112
# +\HasNoChildren+ attribute was also sent by the server
108
- NOINFERIORS = :Noinferiors
113
+ NO_INFERIORS = :Noinferiors
109
114
110
115
# Mailbox attribute indicating it is not possible to use this name as a
111
116
# selectable mailbox.
112
- NOSELECT = :Noselect
117
+ NO_SELECT = :Noselect
113
118
114
119
# The presence of this attribute indicates that the mailbox has child
115
120
# mailboxes. A server SHOULD NOT set this attribute if there are child
@@ -128,7 +133,7 @@ class IMAP < Protocol
128
133
# +\HasNoChildren+ attribute in the same #list response. A client that
129
134
# encounters a #list response with both +\HasChildren+ and +\HasNoChildren+
130
135
# attributes present should act as if both are absent in the #list response.
131
- HAS_CHILDREN = :HasChildren
136
+ HAS_CHILDREN = :Haschildren
132
137
133
138
# The presence of this attribute indicates that the mailbox has NO child
134
139
# mailboxes that are accessible to the currently authenticated user.
@@ -141,7 +146,7 @@ class IMAP < Protocol
141
146
# Note: the +\HasNoChildren+ attribute should not be confused with the
142
147
# +\NoInferiors+ attribute, which indicates that no child mailboxes exist
143
148
# now and none can be created in the future.
144
- HAS_NO_CHILDREN = :HasNoChildren
149
+ HAS_NO_CHILDREN = :Hasnochildren
145
150
146
151
# The mailbox has been marked "interesting" by the server; the mailbox
147
152
# probably contains messages that have been added since the last time the
@@ -170,6 +175,15 @@ class IMAP < Protocol
170
175
# The mailbox is a remote mailbox.
171
176
REMOTE = :Remove
172
177
178
+ # Alias for NO_INFERIORS, to match the \IMAP spelling.
179
+ NOINFERIORS = NO_INFERIORS
180
+ # Alias for NO_SELECT, to match the \IMAP spelling.
181
+ NOSELECT = NO_SELECT
182
+ # Alias for HAS_CHILDREN, to match the \IMAP spelling.
183
+ HASCHILDREN = HAS_CHILDREN
184
+ # Alias for HAS_NO_CHILDREN, to match the \IMAP spelling.
185
+ HASNOCHILDREN = HAS_NO_CHILDREN
186
+
173
187
# -------------------------------------------------------------------------
174
188
# :section: Mailbox role attributes
175
189
#
@@ -186,6 +200,10 @@ class IMAP < Protocol
186
200
# extensions, begin with <tt>"\"</tt>. Net::IMAP returns all mailbox
187
201
# attributes as symbols, without the <tt>"\"</tt> prefix.
188
202
#
203
+ # The special use attributes were first defined as part of the
204
+ # SPECIAL-USE[https://www.rfc-editor.org/rfc/rfc6154.html] extension, but
205
+ # servers may return them without including the +SPECIAL-USE+ #capability.
206
+ #
189
207
# <em>The descriptions here were copied from</em> {[RFC-9051 §
190
208
# 7.3.1]}[https://www.rfc-editor.org/rfc/rfc9051.html#section-7.3.1].
191
209
#
0 commit comments