<commit_before>
require "ratchet"
require "ratchet.smtp.client"

require "slimta.edge.smtp"
require "slimta.bus"
require "slimta.message"

-- {{{ check_messages()
local function check_messages(messages)
    assert(1 == #messages)
    local message = messages[1]

    assert("SMTP" == message.client.protocol)
    assert("test" == message.client.ehlo)
    assert("127.0.0.1" == message.client.ip)
    assert("none" == message.client.security)

    assert("<EMAIL>" == message.envelope.sender)
    assert(1 == #message.envelope.recipients)
    assert("<EMAIL>" == message.envelope.recipients[1])

    local expected = [[
From: <EMAIL><commit_msg>test needed "ESMTP" protocol change<commit_after>
require "ratchet"
require "ratchet.smtp.client"

require "slimta.edge.smtp"
require "slimta.bus"
require "slimta.message"

-- {{{ check_messages()
local function check_messages(messages)
    assert(1 == #messages)
    local message = messages[1]

    assert("ESMTP" == message.client.protocol)
    assert("test" == message.client.ehlo)
    assert("127.0.0.1" == message.client.ip)
    assert("none" == message.client.security)

    assert("<EMAIL>" == message.envelope.sender)
    assert(1 == #message.envelope.recipients)
    assert("<EMAIL>" == message.envelope.recipients[1])

    local expected = [[
From: <EMAIL>
{'fraction_non_alphanumeric': 0.16323417238749047, 'fraction_numerical': 0.015255530129672006, 'mean_word_length': 4.355102040816327, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2209792', 'n_tokens_mistral': 453, 'n_tokens_neox': 432, 'n_words': 79}