Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/net/imap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -642,9 +642,9 @@ module Net
# RFC 5322, DOI 10.17487/RFC5322, October 2008,
# <https://www.rfc-editor.org/info/rfc5322>.
#
# <em>Note: obsoletes</em>
# RFC-2822[https://www.rfc-editor.org/rfc/rfc2822]<em> (April 2001) and</em>
# RFC-822[https://www.rfc-editor.org/rfc/rfc822]<em> (August 1982).</em>
# *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,
Expand Down Expand Up @@ -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,
# <https://www.rfc-editor.org/info/rfc6851>.
# [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,
# <https://www.rfc-editor.org/info/rfc6855>.
Expand Down
4 changes: 2 additions & 2 deletions lib/net/imap/data_encoding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down