aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbyteskeptical <40208858+byteskeptical@users.noreply.github.com>2024-03-13 20:30:10 +0000
committerGitHub <noreply@github.com>2024-03-13 20:30:10 +0000
commit40c0ce9e6741cd1996989462abe54fef9908614e (patch)
tree550ccd39fcaaaf4e7ddb985550adea1716bc0cf0
parent8ac4d82f4c9e5d49f1e859796538e1a70db5bf95 (diff)
parent3adcee82f349a00089e3b59c55ebfc6b9fb93901 (diff)
Merge pull request #1 from byteskeptical/header_who_from_toHEADroot
Who Reply-To Foo
-rw-r--r--README.md2
-rw-r--r--liam.rb4
2 files changed, 4 insertions, 2 deletions
diff --git a/README.md b/README.md
index 103c9a2..d3cdb05 100644
--- a/README.md
+++ b/README.md
@@ -68,4 +68,4 @@ The function uses `Aws::S3::EncryptionV2::Client` with AES-GCM encryption and KM
## Contributions
-For suggestions, improvements, or contributions, please open a pull request or issue.
+For contributions, improvements, or suggestions please open a pull request or issue.
diff --git a/liam.rb b/liam.rb
index ca81ac7..9faee7c 100644
--- a/liam.rb
+++ b/liam.rb
@@ -14,7 +14,7 @@ DEFAULT_CONFIG = {
],
'ads@example.com' => [
'marketing@example.com',
- 'legal@lawfirm.com'
+ 'legaleagle@lawfirm.com'
],
'@example.com' => [
'webeau@example.com'
@@ -125,6 +125,8 @@ def process_event(data)
headers.each do |header|
if header['name'] == 'Prefix'
data[:config][:email_key_prefix] = "#{header['value']}/"
+ elsif header['name'].casecmp('reply-to').zero?
+ forward_headers << "#{header['name']}: #{reply.nil? || reply.empty? ? from : reply}"
elsif header['name'] == 'Subject'
forward_headers << "#{header['name']}: #{subject}"
elsif !headers_to_remove.include?(header['name'])