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

Function processEmailIntegration

packages/integration-email/src/outbound.ts:14–36  ·  view source on GitHub ↗
(
  {
    channelId,
    messageId,
    threadId,
    event,
    integration,
    id,
  }: any /* TODO: add types */
)

Source from the content-addressed store, hash-verified

12});
13
14export async function processEmailIntegration(
15 {
16 channelId,
17 messageId,
18 threadId,
19 event,
20 integration,
21 id,
22 }: any /* TODO: add types */
23) {
24 if (event === 'newThread') {
25 return 'not implemented yet';
26 }
27 if (event === 'threadClosed') {
28 return 'not implemented yet';
29 }
30 if (event === 'threadReopened') {
31 return 'not implemented yet';
32 }
33 if (event === 'newMessage') {
34 return await processNewMessage(messageId!, integration, event);
35 }
36}
37
38async function processNewMessage(
39 messageId: string,

Callers 1

twoWaySyncJobFunction · 0.90

Calls 1

processNewMessageFunction · 0.70

Tested by

no test coverage detected