class Mail::Encodings::QuotedPrintable

Defined in:

mail/encodings/quoted_printable.cr

Constant Summary

NAME = "quoted-printable"
PRIORITY = 2

Class Method Summary

Class methods inherited from class Mail::Encodings::SevenBit

compatible_input?(str) compatible_input?, decode(str) decode, encode(str) encode

Class methods inherited from class Mail::Encodings::EightBit

compatible_input?(str) compatible_input?

Class methods inherited from class Mail::Encodings::Identity

cost(str) cost, decode(str) decode, encode(str) encode

Class methods inherited from class Mail::Encodings::TransferEncoding

can_encode?(enc) can_encode?, can_transport?(enc) can_transport?, compatible_input?(str) compatible_input?, cost(str) cost, lowest_cost(str, encodings) lowest_cost, negotiate(message_encoding, source_encoding, str, allowed_encodings = nil) negotiate, renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil) renegotiate, to_s to_s

Class Method Detail

def self.can_encode?(enc) #

[View source]
def self.compatible_input?(str) #

QP inserts newlines automatically and cannot violate the SMTP spec.


[View source]
def self.decode(str) #

Decode the string from Quoted-Printable. Cope with hard line breaks that were incorrectly encoded as hex instead of literal CRLF.


[View source]
def self.encode(str) #

[View source]