diff --git a/app/jobs/scheduled/poll_mailbox.rb b/app/jobs/scheduled/poll_mailbox.rb index e0f4c852a87..9618220bc88 100644 --- a/app/jobs/scheduled/poll_mailbox.rb +++ b/app/jobs/scheduled/poll_mailbox.rb @@ -8,7 +8,7 @@ require_dependency 'email/message_builder' module Jobs class PollMailbox < Jobs::Scheduled - every 5.minutes + every SiteSetting.pop3s_polling_period_mins.minutes sidekiq_options retry: false include Email::BuildEmailHelper diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 4795c82ba89..352f684f1f3 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -854,6 +854,7 @@ en: pop3s_polling_enabled: "Poll via POP3S for email replies" pop3s_polling_insecure: "Poll using plain text POP3 without SSL" + pop3s_polling_period_mins: "The period in minutes between checking the POP3S account for email" pop3s_polling_port: "The port to poll a POP3S account on" pop3s_polling_host: "The host to poll for email via POP3S" pop3s_polling_username: "The username for the POP3S account to poll for email" diff --git a/config/site_settings.yml b/config/site_settings.yml index 2c07c403087..b60a37d0dfe 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -361,6 +361,7 @@ email: reply_by_email_address: '' pop3s_polling_enabled: false pop3s_polling_insecure: false + pop3s_polling_period_mins: 5 pop3s_polling_host: '' pop3s_polling_port: 995 pop3s_polling_username: ''