mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Publish unsubscribe header info in the non-newsletter queue
This commit is contained in:
parent
0b15fefeb9
commit
cb1968a82d
1 changed files with 3 additions and 0 deletions
|
|
@ -130,6 +130,7 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
)
|
||||
}
|
||||
|
||||
const unsubscribe = parseUnsubscribe(unSubHeader)
|
||||
// queue non-newsletter emails
|
||||
await pubsub.topic(NON_NEWSLETTER_EMAIL_TOPIC).publishMessage({
|
||||
json: {
|
||||
|
|
@ -138,6 +139,8 @@ export const inboundEmailHandler = Sentry.GCPFunction.wrapHttpFunction(
|
|||
subject: subject,
|
||||
html: html,
|
||||
text: text,
|
||||
unsubMailTo: unsubscribe.mailTo,
|
||||
unsubHttpUrl: unsubscribe.httpUrl,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue