Grooming.
This commit is contained in:
parent
aff4272baa
commit
a3e8e4c484
@ -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}."
|
||||
|
Loading…
Reference in New Issue
Block a user