mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: don't poll the mailbox in development
This commit is contained in:
parent
99c4252ba6
commit
8608b5cbc1
1 changed files with 6 additions and 1 deletions
|
@ -12,7 +12,12 @@ module Jobs
|
||||||
|
|
||||||
def execute(args)
|
def execute(args)
|
||||||
@args = args
|
@args = args
|
||||||
poll_pop3 if SiteSetting.pop3_polling_enabled?
|
poll_pop3 if should_poll?
|
||||||
|
end
|
||||||
|
|
||||||
|
def should_poll?
|
||||||
|
return false if Rails.env.development? && ENV["POLL_MAILBOX"].nil?
|
||||||
|
SiteSetting.pop3_polling_enabled?
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_popmail(popmail)
|
def process_popmail(popmail)
|
||||||
|
|
Loading…
Reference in a new issue