mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
Add a SiteSetting to control the pop3 polling period.
The default 5 minutes may add too much lag for some sites used to mailing list performance. Unfortunately, this seems to require restarting the server for the change to be noticed - is there any way to avoid that, or otherwise should this be noted in the setting text?
This commit is contained in:
parent
00cc33c110
commit
5da2eac1bb
@ -8,7 +8,7 @@ require_dependency 'email/message_builder'
|
|||||||
|
|
||||||
module Jobs
|
module Jobs
|
||||||
class PollMailbox < Jobs::Scheduled
|
class PollMailbox < Jobs::Scheduled
|
||||||
every 5.minutes
|
every SiteSetting.pop3s_polling_period_mins.minutes
|
||||||
sidekiq_options retry: false
|
sidekiq_options retry: false
|
||||||
include Email::BuildEmailHelper
|
include Email::BuildEmailHelper
|
||||||
|
|
||||||
|
@ -854,6 +854,7 @@ en:
|
|||||||
|
|
||||||
pop3s_polling_enabled: "Poll via POP3S for email replies"
|
pop3s_polling_enabled: "Poll via POP3S for email replies"
|
||||||
pop3s_polling_insecure: "Poll using plain text POP3 without SSL"
|
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_port: "The port to poll a POP3S account on"
|
||||||
pop3s_polling_host: "The host to poll for email via POP3S"
|
pop3s_polling_host: "The host to poll for email via POP3S"
|
||||||
pop3s_polling_username: "The username for the POP3S account to poll for email"
|
pop3s_polling_username: "The username for the POP3S account to poll for email"
|
||||||
|
@ -348,6 +348,7 @@ email:
|
|||||||
reply_by_email_address: ''
|
reply_by_email_address: ''
|
||||||
pop3s_polling_enabled: false
|
pop3s_polling_enabled: false
|
||||||
pop3s_polling_insecure: false
|
pop3s_polling_insecure: false
|
||||||
|
pop3s_polling_period_mins: 5
|
||||||
pop3s_polling_host: ''
|
pop3s_polling_host: ''
|
||||||
pop3s_polling_port: 995
|
pop3s_polling_port: 995
|
||||||
pop3s_polling_username: ''
|
pop3s_polling_username: ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user