Skip to content

Commit 3b95fde

Browse files
feat: add message headers to webhook event payload
Includes the message headers in the webhook_hash for webhook events, allowing webhook consumers to access email headers. Cherry-picked from postalserver/postal PR postalserver#3290 Co-authored-by: nemdub <nemdub@users.noreply.github.com> Co-authored-by: openhands <openhands@all-hands.dev>
1 parent 7f22139 commit 3b95fde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/postal/message_db/message.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,8 @@ def webhook_hash
457457
subject: subject,
458458
timestamp: timestamp.to_f,
459459
spam_status: spam_status,
460-
tag: tag
460+
tag: tag,
461+
headers: headers
461462
}
462463
end
463464

0 commit comments

Comments
 (0)