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

@@ -86,7 +86,7 @@ export class StorageManager {
*/
private async ensureDirectory(dirPath: string): Promise<void> {
try {
await plugins.smartfile.fs.ensureDir(dirPath);
await plugins.fsUtils.ensureDir(dirPath);
} catch (error) {
logger.log('error', `Failed to create storage directory: ${error.message}`);
throw error;
@@ -149,7 +149,7 @@ export class StorageManager {
const dir = plugins.path.dirname(filePath);
// Ensure directory exists
await plugins.smartfile.fs.ensureDir(dir);
await plugins.fsUtils.ensureDir(dir);
// Write atomically with temp file
const tempPath = `${filePath}.tmp`;
@@ -208,7 +208,7 @@ export class StorageManager {
const dirPath = plugins.path.dirname(filePath);
// Ensure directory exists
await plugins.smartfile.fs.ensureDir(dirPath);
await plugins.fsUtils.ensureDir(dirPath);
// Write atomically
const tempPath = filePath + '.tmp';