MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / findChannel

Function findChannel

packages/integration-email/src/inbound.ts:30–41  ·  view source on GitHub ↗
(emails: string[])

Source from the content-addressed store, hash-verified

28});
29
30async function findChannel(emails: string[]) {
31 if (!emails || !emails.length) {
32 return null;
33 }
34 for (const email of emails) {
35 const channel = await linenSdk.getChannel({ integrationId: email });
36 if (channel) {
37 return channel;
38 }
39 }
40 return null;
41}
42
43async function handleInbound(reqBody: any) {
44 const spam = reqBody.headerLines.find(

Callers 1

handleInboundFunction · 0.85

Calls 1

getChannelMethod · 0.80

Tested by

no test coverage detected