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
|
||||
end
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
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