MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / normalizeMailboxLabel

Function normalizeMailboxLabel

microsoft-email.js:56–58  ·  view source on GitHub ↗
(mailbox = 'INBOX')

Source from the content-addressed store, hash-verified

54 }
55
56 function normalizeMailboxLabel(mailbox = 'INBOX') {
57 return /^junk(?:\s*e-?mail|\s*email)?$/i.test(String(mailbox || '').trim()) ? 'Junk' : 'INBOX';
58 }
59
60 function normalizeMailboxId(mailbox = 'INBOX') {
61 return normalizeMailboxLabel(mailbox) === 'Junk' ? 'junkemail' : 'inbox';

Callers 6

normalizeMailboxIdFunction · 0.85
normalizeMailboxListFunction · 0.85
fetchGraphMessagesFunction · 0.85
fetchOutlookMessagesFunction · 0.85
normalizeMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected