The following example extracts content from a flow.

function Flow_GetContent (dpiMsg, ruleEngine)
  require 'LOG'
  -- NOTE: You can extract content from smtp, http, and/or ftp_data protocols.
  local protocol = "smtp"
  if (GetLatestApplication(dpiMsg) == protocol) then
    local smtpDataContent = GetContent(dpiMsg, protocol)
    EZINFO("Smtp Content: " .. smtpDataContent)
  end
end