Skip to content

Commit e9f4a33

Browse files
committed
♻️ Update IMAP4rev1 resp codes with nz-number data
This matches the ABNF better but it's effectively identical—we don't validate that numbers are within range.
1 parent 8be322d commit e9f4a33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/net/imap/response_parser.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,9 +1502,9 @@ def resp_text_code
15021502
case name
15031503
when "CAPABILITY" then resp_code__capability
15041504
when "PERMANENTFLAGS" then SP? ? flag_perm__list : []
1505-
when "UIDVALIDITY" then SP!; number
1506-
when "UIDNEXT" then SP!; number
1507-
when "UNSEEN" then SP!; number
1505+
when "UIDNEXT" then SP!; nz_number
1506+
when "UIDVALIDITY" then SP!; nz_number
1507+
when "UNSEEN" then SP!; nz_number # rev1 only
15081508
when "APPENDUID" then resp_code_apnd__data
15091509
when "COPYUID" then resp_code_copy__data
15101510
when "BADCHARSET" then charset_list

0 commit comments

Comments
 (0)