gitlab-org--gitlab-foss/spec
Dmitriy Zaporozhets c1b490d6ef Merge branch 'handle-smtp-input-errors' into 'master'
Gracefully handle SMTP user input errors (e.g. incorrect email addresses) to prevent Sidekiq retries

### What does this MR do?

This MR gracefully handles SMTP input errors (e.g. incorrect or invalid e-mail addresses) to prevent these types of exceptions from causing Sidekiq to retry the task. If these specific exceptions occur, they will be logged, and the e-mail will be dropped from the queue.

### Why was this MR needed?

If you include an author that has a misspelled e-mail address, Sidekiq will keep sending e-mail to all the recipients even if they have already received the e-mail. The only way to recover is to clear the Sidekiq queue.

Note that other exceptions can still be thrown (e.g. `IOError`, `Net::SMTPAuthenticationError`, `Net::SMTPServerBusy`, `Net::SMTPUnknownError`, and `TimeoutError`). If the worker encounters these, Sidekiq should retry the task.

### What are the relevant issue numbers?

Closes https://github.com/gitlabhq/gitlabhq/issues/9560

See merge request !1163
2015-08-25 09:23:43 +00:00
..
controllers Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab 2015-08-23 09:23:44 -07:00
factories
features
finders
fixtures No HTML-only email please 2015-08-21 16:09:55 -07:00
helpers
javascripts
lib Remove user OAuth tokens stored in database for Bitbucket, GitHub, and GitLab 2015-08-23 09:23:44 -07:00
mailers
models Merge branch 'hide-recent-push' into 'master' 2015-08-21 14:54:53 +00:00
requests/api Fix Error 500 in API when accessing a group that has an avatar 2015-08-24 07:46:06 -07:00
routing
services Create cross-reference for closing references on commits pushed to non-default branches. 2015-08-22 16:49:09 +02:00
support Fix markdown specs again. Apparently development and test behave differently. 2015-08-20 15:41:34 -07:00
tasks/gitlab
workers Merge branch 'handle-smtp-input-errors' into 'master' 2015-08-25 09:23:43 +00:00
factories.rb
factories_spec.rb
rails_helper.rb
spec_helper.rb
teaspoon_env.rb