class method
self.unquote_quoted_printable_and_convert_to
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
self.unquote_quoted_printable_and_convert_to(text, to, from, preserve_underscores=false)
No documentation comment.
Parameters
-
textreq -
toreq -
fromreq -
preserve_underscoresopt = false
Source
# File actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb, line 85
def unquote_quoted_printable_and_convert_to(text, to, from, preserve_underscores=false)
text = text.gsub(/_/, " ") unless preserve_underscores
text = text.gsub(/\r\n|\r/, "\n") # normalize newlines
convert_to(text.unpack("M*").first, to, from)
end
Defined in actionmailer/lib/action_mailer/vendor/tmail-1.2.3/tmail/quoting.rb line 85
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in TMail::Unquoter