chorus/index.ts

10 lines
330 B
TypeScript
Raw Normal View History

import {withClient} from "./src/mail/client.ts";
import {collect, Collection} from "./src/bones/collection/Collection.ts";
import {getMailboxesToSearch, withMailbox} from "./src/mail/read.ts";
2024-12-31 02:36:12 +00:00
(await getMailboxesToSearch())
.map(box => withMailbox(box, async c => {
console.log(await c.all())
}))
.awaitAll()