2024-12-24 14:43:23 +00:00
|
|
|
import {castCommentsConfig, type CommentsConfig} from "./types.ts";
|
|
|
|
|
|
|
|
const maybeConfig: any = {
|
|
|
|
mail: {
|
|
|
|
imap: {
|
|
|
|
host: process.env.CHORUS_IMAP_HOST,
|
|
|
|
port: process.env.CHORUS_IMAP_PORT || 993,
|
|
|
|
auth: {
|
|
|
|
user: process.env.CHORUS_IMAP_USER,
|
|
|
|
pass: process.env.CHORUS_IMAP_PASS,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
threads: {
|
|
|
|
type: 'alias',
|
|
|
|
template: process.env.CHORUS_THREAD_TEMPLATE,
|
2024-12-31 02:36:12 +00:00
|
|
|
idPrefix: 't.',
|
2024-12-24 14:43:23 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const config: CommentsConfig = castCommentsConfig(maybeConfig)
|