Module: Rexlite::MIME::Encoding

Included in:
Message, Part
Defined in:
lib/nexpose/rexlite/mime/encoding.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#force_crlf(data) ⇒ String

Enforces CRLF on the input data

Parameters:

  • data (String)

    The data to CRLF enforce.

Returns:

  • (String)

    CRLF enforced data.



11
12
13
# File 'lib/nexpose/rexlite/mime/encoding.rb', line 11

def force_crlf(data)
  data.gsub("\r", '').gsub("\n", "\r\n")
end