Change pop3 auth errors from admin message to dashboard notice
This commit is contained in:
parent
15120bb583
commit
eb14983dfa
|
@ -70,9 +70,7 @@ module Jobs
|
||||||
pop.finish
|
pop.finish
|
||||||
end
|
end
|
||||||
rescue Net::POPAuthenticationError => e
|
rescue Net::POPAuthenticationError => e
|
||||||
# inform admins about the error (1 message per hour to prevent too much SPAM)
|
Discourse.handle_exception(e, { context: "signing in for incoming email" })
|
||||||
data = { limit_once_per: 1.hour, message_params: { error: e }}
|
|
||||||
GroupMessage.create(Group[:admins].name, :email_error_notification, data)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue