MCPcopy Index your code
hub / github.com/simstudioai/sim / shouldSkipForUnsubscribe

Function shouldSkipForUnsubscribe

apps/sim/lib/messaging/email/prepare.ts:102–107  ·  view source on GitHub ↗
(options: EmailOptions)

Source from the content-addressed store, hash-verified

100}
101
102export async function shouldSkipForUnsubscribe(options: EmailOptions): Promise<boolean> {
103 const { emailType = 'transactional', to } = options
104 if (emailType === 'transactional') return false
105 const primaryEmail = Array.isArray(to) ? to[0] : to
106 return isUnsubscribed(primaryEmail, emailType)
107}

Callers 2

sendEmailFunction · 0.90
prepareBatchFunction · 0.90

Calls 1

isUnsubscribedFunction · 0.90

Tested by

no test coverage detected