diff --git a/app/jobs/scheduled/poll_mailbox.rb b/app/jobs/scheduled/poll_mailbox.rb index efaa743f9c..a19e43d8bf 100644 --- a/app/jobs/scheduled/poll_mailbox.rb +++ b/app/jobs/scheduled/poll_mailbox.rb @@ -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