Grooming.

This commit is contained in:
Philippe Pittoli 2023-02-04 03:46:38 +01:00
parent aff4272baa
commit a3e8e4c484

View File

@ -210,15 +210,14 @@ def main
pp! mail_conf
end
# Now we did read the intent, we should proceed doing what was asked.
begin
smtpd_config = EMail::Client::Config.new mail_conf.smtpd_host,
mail_conf.smtpd_port.to_i,
helo_domain: mail_conf.smtpd_helo_domain
smtpd_client = EMail::Client.new smtpd_config
actions = Actions.new mail_conf, smtpd_client
# Now we did read the intent, we should proceed doing what was asked.
begin
actions.the_call[Context.command].call
rescue e
Baguette::Log.info "The command is not recognized (or implemented): #{e}."