Skip to content

Commit

Permalink
Only includes one mail in reply_to
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoprietog committed Nov 30, 2023
1 parent 8a18eec commit 95149b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailchannels_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def deliver!(mail)
to: mail.to_addresses.map { |address| { email: address.address, name: address.name }.compact },
cc: mail.cc_addresses.map { |address| { email: address.address, name: address.name }.compact }.presence,
bcc: mail.bcc_addresses.map { |address| { email: address.address, name: address.name }.compact }.presence,
reply_to: (mail.header["Reply-To"]&.element&.addresses || []).map { |address| { email: address.address, name: address.name }.compact }.presence
reply_to: (mail.header["Reply-To"]&.element&.addresses || []).map { |address| { email: address.address, name: address.name }.compact }.first
}.compact],
content: mail.parts.map { |part| { type: part.content_type, value: part.decoded } }
}
Expand Down

0 comments on commit 95149b2

Please sign in to comment.