module Rexlite::MIME::Encoding

Set of helpers methods to deal with SMTP encoding related topics.

Public Instance Methods

force_crlf(data) click to toggle source

Enforces CRLF on the input data

@param data [String] The data to CRLF enforce. @return [String] CRLF enforced data.

# File lib/nexpose/rexlite/mime/encoding.rb, line 10
def force_crlf(data)
  data.gsub("\r", '').gsub("\n", "\r\n")
end