class Mail::Encodings::SevenBit

Overview

7bit and 8bit are equivalent. 7bit encoding is for text only.

Direct Known Subclasses

Defined in:

mail/encodings/7bit.cr

Constant Summary

NAME = "7bit"
PRIORITY = 1

Class Method Summary

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.compatible_input?(str) #

Per RFC 2045 2.7. 7bit Data, No octets with decimal values greater than 127 are allowed.


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

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

[View source]