fix(mail): migrate filesystem helpers to fsUtils, update DKIM and mail APIs, harden SMTP client, and bump dependencies
This commit is contained in:
@@ -1167,7 +1167,7 @@ export class SenderReputationMonitor {
|
||||
} else {
|
||||
// No storage manager, use filesystem directly
|
||||
const reputationDir = plugins.path.join(paths.dataDir, 'reputation');
|
||||
plugins.smartfile.fs.ensureDirSync(reputationDir);
|
||||
plugins.fsUtils.ensureDirSync(reputationDir);
|
||||
|
||||
const dataFile = plugins.path.join(reputationDir, 'domain_reputation.json');
|
||||
|
||||
@@ -1224,11 +1224,11 @@ export class SenderReputationMonitor {
|
||||
} else {
|
||||
// No storage manager, use filesystem directly
|
||||
const reputationDir = plugins.path.join(paths.dataDir, 'reputation');
|
||||
plugins.smartfile.fs.ensureDirSync(reputationDir);
|
||||
plugins.fsUtils.ensureDirSync(reputationDir);
|
||||
|
||||
const dataFile = plugins.path.join(reputationDir, 'domain_reputation.json');
|
||||
|
||||
plugins.smartfile.memory.toFsSync(
|
||||
plugins.fsUtils.toFsSync(
|
||||
JSON.stringify(reputationEntries, null, 2),
|
||||
dataFile
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user