[WIP] Start tinkering with IMAP
This commit is contained in:
15
src/types.ts
15
src/types.ts
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user