# File lib/mailfactory.rb, line 440 def quote_if_necessary(text, charset, instruction = false) return unless text text = text.dup.force_encoding(Encoding::ASCII_8BIT) if text.respond_to?(:force_encoding) #(text =~ CHARS_NEEDING_QUOTING) ? (instruction ? quoted_printable_with_instruction(text, charset) : quoted_printable_encode(text)) : text instruction ? quoted_printable_with_instruction(text, charset) : quoted_printable_encode(text) end