Added port attribute for imap/pop3 and smtp. See also issue#240.
This commit is contained in:
parent
c8eab7ca56
commit
67381c07bd
4 changed files with 9 additions and 1 deletions
|
@ -528,6 +528,7 @@ class App.ChannelEmailAccountWizard extends App.WizardModal
|
|||
{ name: 'options::host', display: 'Host', tag: 'input', type: 'text', limit: 120, null: false, autocapitalize: false },
|
||||
{ name: 'options::user', display: 'User', tag: 'input', type: 'text', limit: 120, null: false, autocapitalize: false, autocomplete: 'off', },
|
||||
{ name: 'options::password', display: 'Password', tag: 'input', type: 'password', limit: 120, null: false, autocapitalize: false, autocomplete: 'new-password', single: true },
|
||||
{ name: 'options::port', display: 'Port', tag: 'input', type: 'text', limit: 6, null: true, autocapitalize: false },
|
||||
{ name: 'options::folder', display: 'Folder', tag: 'input', type: 'text', limit: 120, null: true, autocapitalize: false },
|
||||
]
|
||||
|
||||
|
@ -566,6 +567,7 @@ class App.ChannelEmailAccountWizard extends App.WizardModal
|
|||
{ name: 'options::host', display: 'Host', tag: 'input', type: 'text', limit: 120, null: false, autocapitalize: false, autofocus: true },
|
||||
{ name: 'options::user', display: 'User', tag: 'input', type: 'text', limit: 120, null: true, autocapitalize: false, autocomplete: 'off', },
|
||||
{ name: 'options::password', display: 'Password', tag: 'input', type: 'password', limit: 120, null: true, autocapitalize: false, autocomplete: 'new-password', single: true },
|
||||
{ name: 'options::port', display: 'Port', tag: 'input', type: 'text', limit: 6, null: true, autocapitalize: false },
|
||||
]
|
||||
@form = new App.ControllerForm(
|
||||
el: @$('.base-outbound-settings')
|
||||
|
|
|
@ -66,6 +66,9 @@ example
|
|||
ssl = false
|
||||
port = 143
|
||||
end
|
||||
if options.key?(:port) && !options[:port].empty?
|
||||
port = options[:port]
|
||||
end
|
||||
|
||||
Rails.logger.info "fetching imap (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})"
|
||||
|
||||
|
|
|
@ -51,6 +51,9 @@ returns
|
|||
ssl = false
|
||||
port = 110
|
||||
end
|
||||
if options.key?(:port) && !options[:port].empty?
|
||||
port = options[:port]
|
||||
end
|
||||
|
||||
Rails.logger.info "fetching pop3 (#{options[:host]}/#{options[:user]} port=#{port},ssl=#{ssl})"
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class Channel::Driver::Smtp
|
|||
return if Setting.get('import_mode')
|
||||
|
||||
# set smtp defaults
|
||||
if !options.key?(:port)
|
||||
if !options.key?(:port) || options[:port].empty?
|
||||
options[:port] = 25
|
||||
end
|
||||
if !options.key?(:domain)
|
||||
|
|
Loading…
Reference in a new issue