class Mail::Encodings::SevenBit

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

Constants

NAME
PRIORITY

Public Class Methods

compatible_input?(str) click to toggle source

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

Calls superclass method
# File lib/mail/encodings/7bit.rb, line 22
def self.compatible_input?(str)
  str.ascii_only? && super
end
decode(str) click to toggle source
# File lib/mail/encodings/7bit.rb, line 13
def self.decode(str)
  ::Mail::Utilities.binary_unsafe_to_lf str
end
encode(str) click to toggle source
# File lib/mail/encodings/7bit.rb, line 17
def self.encode(str)
  ::Mail::Utilities.binary_unsafe_to_crlf str
end