diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | liam.rb | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -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. @@ -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']) |
