Skip to content

Commit

Permalink
Thanks tests
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Jan 8, 2024
1 parent 949857d commit 8b0118c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/lib/email_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def initialize(email)
@html = clean_html_version(@stripped_html)
@message_id = email.headers&.dig("Message-ID")&.gsub("<", "")&.gsub(">", "")

@raw_body = to_utf8(email.raw_body)
@attachments = email.attachments
@user = find_user_from_user_key(@token, @from)

if @user.id == 1
p "*"*100
p "MESSAGE ID"
Expand All @@ -28,10 +32,6 @@ def initialize(email)
p "*"*100
end

@raw_body = to_utf8(email.raw_body)
@attachments = email.attachments
@user = find_user_from_user_key(@token, @from)

@inbound_email_params = {
subject: to_utf8(email.subject),
cc: email.cc,
Expand Down

0 comments on commit 8b0118c

Please sign in to comment.