[WIP] Start tinkering with IMAP

This commit is contained in:
2024-12-30 21:36:12 -05:00
parent 7791baff20
commit 063809e446
15 changed files with 3651 additions and 2 deletions

View File

@@ -13,6 +13,7 @@ const commentsConfigSchema = z.object({
threads: z.object({
type: z.string(), // fixme : in validation
template: z.string(),
idPrefix: z.string(),
}),
}),
})
@@ -21,3 +22,17 @@ export type CommentsConfig = z.infer<typeof commentsConfigSchema>
export const castCommentsConfig = (what: unknown): CommentsConfig => {
return commentsConfigSchema.parse(what)
}
export type Message = {
id: string,
date: Date,
recipients: string[],
from: {
name?: string,
address?: string,
},
subject: string,
content: string,
}