File tree Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Expand file tree Collapse file tree 1 file changed +8
-27
lines changed Original file line number Diff line number Diff line change @@ -1452,34 +1452,15 @@ def acl_data
1452
1452
# mailbox-data = obsolete-search-response / ...
1453
1453
# obsolete-search-response = "SEARCH" *(SP nz-number)
1454
1454
def mailbox_data__search
1455
- token = match ( T_ATOM )
1456
- name = token . value . upcase
1457
- token = lookahead
1458
- if token . symbol == T_SPACE
1459
- shift_token
1460
- data = [ ]
1461
- while true
1462
- token = lookahead
1463
- case token . symbol
1464
- when T_CRLF
1465
- break
1466
- when T_SPACE
1467
- shift_token
1468
- when T_NUMBER
1469
- data . push ( number )
1470
- when T_LPAR
1471
- # TODO: include the MODSEQ value in a response
1472
- shift_token
1473
- match ( T_ATOM )
1474
- match ( T_SPACE )
1475
- match ( T_NUMBER )
1476
- match ( T_RPAR )
1477
- end
1478
- end
1479
- else
1480
- data = [ ]
1455
+ name = label_in ( "SEARCH" , "SORT" )
1456
+ data = [ ]
1457
+ while _ = SP? && nz_number? do data << _ end
1458
+ if lpar?
1459
+ label ( "MODSEQ" ) ; SP!
1460
+ mod_sequence_value
1461
+ rpar
1481
1462
end
1482
- return UntaggedResponse . new ( name , data , @str )
1463
+ UntaggedResponse . new ( name , data , @str )
1483
1464
end
1484
1465
alias sort_data mailbox_data__search
1485
1466
You can’t perform that action at this time.
0 commit comments