mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Save unsubscribe email address or http url of newsletter emails
This commit is contained in:
parent
cb1968a82d
commit
ef0c2434fb
1 changed files with 4 additions and 0 deletions
|
|
@ -13,6 +13,8 @@ interface ForwardEmailMessage {
|
|||
to: string
|
||||
subject: string
|
||||
html: string
|
||||
unsubMailTo?: string
|
||||
unsubHttpUrl?: string
|
||||
}
|
||||
|
||||
export function emailsServiceRouter() {
|
||||
|
|
@ -61,6 +63,8 @@ export function emailsServiceRouter() {
|
|||
url:
|
||||
(await findNewsletterUrl(data.html)) ||
|
||||
'https://omnivore.app/no_url?q' + uuid(),
|
||||
unsubMailTo: data.unsubMailTo,
|
||||
unsubHttpUrl: data.unsubHttpUrl,
|
||||
})
|
||||
res.status(200).send('Newsletter')
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue