diff options
Diffstat (limited to 'app/mailers/base_mailer.rb')
-rw-r--r-- | app/mailers/base_mailer.rb | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/app/mailers/base_mailer.rb b/app/mailers/base_mailer.rb index 38b8a296842..8299a4140dc 100644 --- a/app/mailers/base_mailer.rb +++ b/app/mailers/base_mailer.rb @@ -1,4 +1,4 @@ -class EmailRejectionMailer < ActionMailer::Base +class BaseMailer < ActionMailer::Base add_template_helper ApplicationHelper add_template_helper GitlabMarkdownHelper @@ -12,24 +12,6 @@ class EmailRejectionMailer < ActionMailer::Base delay_for(2.seconds) end - def rejection(reason, original_raw, can_retry = false) - @reason = reason - @original_message = Mail::Message.new(original_raw) - - headers = { - to: @original_message.from, - subject: "[Rejected] #{@original_message.subject}" - } - - headers['Message-ID'] = SecureRandom.hex - headers['In-Reply-To'] = @original_message.message_id - headers['References'] = @original_message.message_id - - headers['Reply-To'] = @original_message.to.first if can_retry - - mail(headers) - end - def can? Ability.abilities.allowed?(user, action, subject) end |