Change pop3 auth errors from admin message to dashboard notice

This commit is contained in:
riking 2014-06-30 14:39:28 -07:00
parent 15120bb583
commit eb14983dfa
1 changed files with 1 additions and 3 deletions

View File

@ -70,9 +70,7 @@ module Jobs
pop.finish
end
rescue Net::POPAuthenticationError => e
# inform admins about the error (1 message per hour to prevent too much SPAM)
data = { limit_once_per: 1.hour, message_params: { error: e }}
GroupMessage.create(Group[:admins].name, :email_error_notification, data)
Discourse.handle_exception(e, { context: "signing in for incoming email" })
end
end