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

Function getMailboxesToCheck

apps/sim/lib/webhooks/polling/imap.ts:344–352  ·  view source on GitHub ↗
(config: ImapWebhookConfig)

Source from the content-addressed store, hash-verified

342}
343
344function getMailboxesToCheck(config: ImapWebhookConfig): string[] {
345 if (!config.mailbox || (Array.isArray(config.mailbox) && config.mailbox.length === 0)) {
346 return ['INBOX']
347 }
348 if (Array.isArray(config.mailbox)) {
349 return config.mailbox
350 }
351 return [config.mailbox]
352}
353
354function parseEmailAddress(
355 addr: { name?: string; address?: string } | { name?: string; address?: string }[] | undefined

Callers 1

fetchNewEmailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected