Added Dokubox Sync Service and Button Fix #12

This commit is contained in:
2026-01-22 19:35:45 +01:00
parent d2b70e5883
commit cb21a85736

View File

@@ -19,23 +19,13 @@ import {
and, and,
} from "drizzle-orm" } from "drizzle-orm"
let badMessageDetected = false
let badMessageMessageSent = false
let client: ImapFlow | null = null
// -------------------------------------------------------------
// IMAP CLIENT INITIALIZEN
// -------------------------------------------------------------
// -------------------------------------------------------------
// MAIN SYNC FUNCTION (DRIZZLE VERSION)
// -------------------------------------------------------------
export function syncDokuboxService (server: FastifyInstance) { export function syncDokuboxService (server: FastifyInstance) {
let badMessageDetected = false
let badMessageMessageSent = false
let client: ImapFlow | null = null
async function initDokuboxClient() { async function initDokuboxClient() {
client = new ImapFlow({ client = new ImapFlow({
host: secrets.DOKUBOX_IMAP_HOST, host: secrets.DOKUBOX_IMAP_HOST,
@@ -264,12 +254,3 @@ export function syncDokuboxService (server: FastifyInstance) {
} }
} }
} }
// -------------------------------------------------------------
// TENANT ERKENNEN + FOLDER/FILETYPES (DRIZZLE VERSION)
// -------------------------------------------------------------