mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: don't poll the mailbox in development
This commit is contained in:
@@ -12,7 +12,12 @@ module Jobs
|
||||
|
||||
def execute(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
|
||||
|
||||
def process_popmail(popmail)
|
||||
|
||||
Reference in New Issue
Block a user