Minor code change (moving some code around).
This commit is contained in:
parent
aff4272baa
commit
1004751fa1
@ -210,15 +210,14 @@ def main
|
|||||||
pp! mail_conf
|
pp! mail_conf
|
||||||
end
|
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,
|
smtpd_config = EMail::Client::Config.new mail_conf.smtpd_host,
|
||||||
mail_conf.smtpd_port.to_i,
|
mail_conf.smtpd_port.to_i,
|
||||||
helo_domain: mail_conf.smtpd_helo_domain
|
helo_domain: mail_conf.smtpd_helo_domain
|
||||||
smtpd_client = EMail::Client.new smtpd_config
|
smtpd_client = EMail::Client.new smtpd_config
|
||||||
|
|
||||||
actions = Actions.new mail_conf, smtpd_client
|
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
|
actions.the_call[Context.command].call
|
||||||
rescue e
|
rescue e
|
||||||
Baguette::Log.info "The command is not recognized (or implemented): #{e}."
|
Baguette::Log.info "The command is not recognized (or implemented): #{e}."
|
||||||
|
Loading…
Reference in New Issue
Block a user