mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 18:58:10 +00:00
Update poll_mailbox.rb
This commit is contained in:
parent
64941e7f91
commit
c5e24da5dd
@ -39,8 +39,9 @@ module Jobs
|
||||
end
|
||||
|
||||
pop3.start(SiteSetting.pop3_polling_username, SiteSetting.pop3_polling_password) do |pop|
|
||||
pop.delete_all do |p|
|
||||
pop.each_mail do |p|
|
||||
process_popmail(p)
|
||||
p.delete if SiteSetting.pop3_polling_delete_from_server?
|
||||
end
|
||||
end
|
||||
rescue Net::OpenTimeout => e
|
||||
|
Loading…
x
Reference in New Issue
Block a user