diff --git a/lib/net/imap.rb b/lib/net/imap.rb index c379e884..237a2653 100644 --- a/lib/net/imap.rb +++ b/lib/net/imap.rb @@ -642,9 +642,9 @@ module Net # RFC 5322, DOI 10.17487/RFC5322, October 2008, # . # - # Note: obsoletes - # RFC-2822[https://www.rfc-editor.org/rfc/rfc2822] (April 2001) and - # RFC-822[https://www.rfc-editor.org/rfc/rfc822] (August 1982). + # *NOTE*: obsoletes + # RFC-2822[https://www.rfc-editor.org/rfc/rfc2822] (April 2001) and + # RFC-822[https://www.rfc-editor.org/rfc/rfc822] (August 1982). # # [CHARSET[https://www.rfc-editor.org/rfc/rfc2978]]:: # Freed, N. and J. Postel, "IANA Charset Registration Procedures", BCP 19, @@ -751,8 +751,8 @@ module Net # Gulbrandsen, A. and N. Freed, Ed., "Internet Message Access Protocol # (\IMAP) - MOVE Extension", RFC 6851, DOI 10.17487/RFC6851, January 2013, # . - # [UTF8=ACCEPT[https://www.rfc-editor.org/rfc/rfc6855]]:: - # [UTF8=ONLY[https://www.rfc-editor.org/rfc/rfc6855]]:: + # [{UTF8=ACCEPT}[https://www.rfc-editor.org/rfc/rfc6855]]:: + # [{UTF8=ONLY}[https://www.rfc-editor.org/rfc/rfc6855]]:: # Resnick, P., Ed., Newman, C., Ed., and S. Shen, Ed., # "IMAP Support for UTF-8", RFC 6855, DOI 10.17487/RFC6855, March 2013, # . diff --git a/lib/net/imap/data_encoding.rb b/lib/net/imap/data_encoding.rb index 2dd94ccb..7eda2609 100644 --- a/lib/net/imap/data_encoding.rb +++ b/lib/net/imap/data_encoding.rb @@ -183,9 +183,9 @@ def valid_number64?(num) end # Check if argument is a valid 'number64' according to RFC 9051 - # number64 = 1*DIGIT + # nz-number64 = digit-nz *DIGIT # ; Unsigned 63-bit integer - # ; (0 <= n <= 9,223,372,036,854,775,807) + # ; (0 < n <= 9,223,372,036,854,775,807) def valid_nz_number64?(num) 0 < num && num <= 0x7fff_ffff_ffff_ffff end