aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'])