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

Function pickLuckmailVerificationMail

luckmail-utils.js:396–408  ·  view source on GitHub ↗
(mails, filters = {})

Source from the content-addressed store, hash-verified

394 }
395
396 function pickLuckmailVerificationMail(mails, filters = {}) {
397 const matches = normalizeLuckmailTokenMails(mails)
398 .map((mail) => mailMatchesLuckmailFilters(mail, filters))
399 .filter(Boolean)
400 .sort((left, right) => {
401 if (left.receivedAt !== right.receivedAt) {
402 return right.receivedAt - left.receivedAt;
403 }
404 return String(right.mail.message_id || '').localeCompare(String(left.mail.message_id || ''));
405 });
406
407 return matches[0] || null;
408 }
409
410 return {
411 DEFAULT_LUCKMAIL_BASE_URL,

Callers 2

Calls 2

Tested by

no test coverage detected