From b2ccc2a4cd56af272c6cc660d904b965f80aa5b9 Mon Sep 17 00:00:00 2001 From: Graeme Porteous Date: Fri, 17 May 2024 15:25:26 +0100 Subject: [PATCH] Update method calls to set email headers Reconcile with core --- lib/data_breach.rb | 4 ++-- lib/volunteer_contact_form.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/data_breach.rb b/lib/data_breach.rb index 3916dbcf..df5c7cc5 100644 --- a/lib/data_breach.rb +++ b/lib/data_breach.rb @@ -73,9 +73,9 @@ def data_breach(report, logged_in_user) ) if @logged_in_user - set_reply_to_headers(nil, 'Reply-To' => @logged_in_user.email) + set_reply_to_headers('Reply-To' => @logged_in_user.email) elsif report.contact_email - set_reply_to_headers(nil, 'Reply-To' => report.contact_email) + set_reply_to_headers('Reply-To' => report.contact_email) end # Set a header so we can filter in the mailbox diff --git a/lib/volunteer_contact_form.rb b/lib/volunteer_contact_form.rb index 9b9b3acc..6e526b68 100644 --- a/lib/volunteer_contact_form.rb +++ b/lib/volunteer_contact_form.rb @@ -79,7 +79,7 @@ def volunteer_message(contact, logged_in_user) reply_to_address = MailHandler.address_from_name_and_email( contact.name, contact.email ) - set_reply_to_headers(nil, 'Reply-To' => reply_to_address) + set_reply_to_headers('Reply-To' => reply_to_address) # Set a header so we can filter in the mailbox headers['X-WDTK-Contact'] = 'wdtk-volunteer'