Skip to content

Commit

Permalink
♻️ Update IMAP4rev1 resp codes with nz-number data
Browse files Browse the repository at this point in the history
This matches the ABNF better but it's effectively identical—we don't
validate that numbers are within range.
  • Loading branch information
nevans committed Oct 28, 2023
1 parent 8be322d commit e9f4a33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/net/imap/response_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1502,9 +1502,9 @@ def resp_text_code
case name
when "CAPABILITY" then resp_code__capability
when "PERMANENTFLAGS" then SP? ? flag_perm__list : []
when "UIDVALIDITY" then SP!; number
when "UIDNEXT" then SP!; number
when "UNSEEN" then SP!; number
when "UIDNEXT" then SP!; nz_number
when "UIDVALIDITY" then SP!; nz_number
when "UNSEEN" then SP!; nz_number # rev1 only
when "APPENDUID" then resp_code_apnd__data
when "COPYUID" then resp_code_copy__data
when "BADCHARSET" then charset_list
Expand Down

0 comments on commit e9f4a33

Please sign in to comment.