fix(mail): migrate filesystem helpers to fsUtils, update DKIM and mail APIs, harden SMTP client, and bump dependencies

This commit is contained in:
2026-02-01 14:17:54 +00:00
parent dd4ac9fa3d
commit d54831765b
38 changed files with 3923 additions and 5335 deletions

View File

@@ -13,12 +13,12 @@ export function configureEmailStorage(emailServer: UnifiedEmailServer, options:
const receivedEmailsPath = options.emailPortConfig.receivedEmailsPath;
// Ensure the directory exists
plugins.smartfile.fs.ensureDirSync(receivedEmailsPath);
plugins.fsUtils.ensureDirSync(receivedEmailsPath);
// Set path for received emails
if (emailServer) {
// Storage paths are now handled by the unified email server system
plugins.smartfile.fs.ensureDirSync(paths.receivedEmailsDir);
plugins.fsUtils.ensureDirSync(paths.receivedEmailsDir);
console.log(`Configured email server to store received emails to: ${receivedEmailsPath}`);
}