File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1346,11 +1346,13 @@ def enable_data
1346
1346
end
1347
1347
1348
1348
# As a workaround for buggy servers, allow a trailing SP:
1349
- # *(SP capapility ) [SP]
1349
+ # *(SP capability ) [SP]
1350
1350
def capability__list
1351
- data = [ ] ; while _ = SP? && capability? do data << _ end ; data
1351
+ list = [ ] ; while SP? && ( capa = capability? ) do list << capa end ; list
1352
1352
end
1353
1353
1354
+ alias resp_code__capability capability__list
1355
+
1354
1356
# capability = ("AUTH=" auth-type) / atom
1355
1357
# ; New capabilities MUST begin with "X" or be
1356
1358
# ; registered with IANA as standard or
@@ -1498,7 +1500,7 @@ def resp_text_code
1498
1500
name = resp_text_code__name
1499
1501
data =
1500
1502
case name
1501
- when "CAPABILITY" then capability__list
1503
+ when "CAPABILITY" then resp_code__capability
1502
1504
when "PERMANENTFLAGS" then SP! ; flag_list
1503
1505
when "UIDVALIDITY" then SP! ; number
1504
1506
when "UIDNEXT" then SP! ; number
You can’t perform that action at this time.
0 commit comments