123456789_123456789_123456789_123456789_123456789_

Module: Net::IMAP::ResponseParser::Patterns

Relationships & Source Files
Namespace Children
Modules:
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, RFC3629, RFC5234
Defined in: lib/net/imap/response_parser.rb

Constant Summary

RFC5234 - Included

ALPHA, CHAR, CRLF, CTL, DIGIT, DQUOTE, HEXDIG, OCTET, SP

RFC3629 - Included

UTF8_1, UTF8_2, UTF8_3, UTF8_4, UTF8_CHAR, UTF8_OCTETS, UTF8_TAIL

Class Method Summary

Class Method Details

.unescape_quoted(quoted) (mod_func)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/net/imap/response_parser.rb', line 355

def unescape_quoted(quoted)
  quoted
    &.gsub(/\\(#{QUOTED_SPECIALS})/n, "\\1")
    &.force_encoding("UTF-8")
end

.unescape_quoted!(quoted) (mod_func)

This method is for internal use only.
[ GitHub ]

  
# File 'lib/net/imap/response_parser.rb', line 349

def unescape_quoted!(quoted)
  quoted
    &.gsub!(/\\(#{QUOTED_SPECIALS})/n, "\\1")
    &.force_encoding("UTF-8")
end