Skip to content

Commit

Permalink
add precedence header to mailers
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Jan 21, 2025
1 parent 674b535 commit f45e878
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ class ApplicationMailer < ActionMailer::Base
.freeze

default from: "Keygen Support <#{DEFAULT_FROM_EMAIL}>"
default precedence: 'normal'
end
2 changes: 1 addition & 1 deletion app/mailers/plaintext_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

class PlaintextMailer < ApplicationMailer
default from: "Zeke at Keygen <zeke@keygen.sh>"
default from: "Zeke Gabrielse <zeke@keygen.sh>"

def low_activity_lifeline(account:)
admin = account.admins.last
Expand Down
2 changes: 2 additions & 0 deletions app/mailers/recovery_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

class RecoveryMailer < ApplicationMailer
default precedence: 'urgent'

layout "recovery_mailer"

def recover_accounts_for_email(email:)
Expand Down
1 change: 1 addition & 0 deletions app/mailers/stdout_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class StdoutMailer < ApplicationMailer
default from: 'Zeke at Keygen <zeke@keygen.sh>'
default precedence: 'bulk'

def issue_zero(subscriber:)
return if
Expand Down
2 changes: 2 additions & 0 deletions app/mailers/user_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

class UserMailer < ApplicationMailer
default from: "Keygen <noreply@keygen.sh>"
default precedence: 'urgent'

layout "user_mailer"

def password_reset(user:, token:)
Expand Down

0 comments on commit f45e878

Please sign in to comment.