@astralibx/email-account-manager 8.0.1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -102,7 +102,7 @@ All services are also available programmatically via the returned `eam` object.
|
|
|
102
102
|
## Getting Started Guide
|
|
103
103
|
|
|
104
104
|
1. [Configuration](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/configuration.md) — Set up database, Redis, queues, and hooks
|
|
105
|
-
2. [Account Management](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/account-management.md) — Create and manage email accounts
|
|
105
|
+
2. [Account Management](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/account-management.md) — Create and manage email accounts (see [default values](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/account-management.md#default-values))
|
|
106
106
|
3. [Warmup System](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/warmup-system.md) — Gradually increase sending volume (**requires daily `advanceDay()` cron**)
|
|
107
107
|
4. [Health Tracking](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/health-tracking.md) — Monitor account health and auto-disable unhealthy accounts
|
|
108
108
|
5. [Email Sending](https://github.com/Hariprakash1997/astralib/blob/main/packages/email-account-manager/docs/email-sending.md) — Send emails via SMTP with queue-based processing
|
package/dist/index.cjs
CHANGED
|
@@ -274,7 +274,7 @@ function createEmailAccountSchema(options) {
|
|
|
274
274
|
},
|
|
275
275
|
limits: {
|
|
276
276
|
type: {
|
|
277
|
-
dailyMax: { type: Number, required: true, default:
|
|
277
|
+
dailyMax: { type: Number, required: true, default: 50 }
|
|
278
278
|
},
|
|
279
279
|
required: true,
|
|
280
280
|
_id: false
|
|
@@ -287,8 +287,8 @@ function createEmailAccountSchema(options) {
|
|
|
287
287
|
thresholds: {
|
|
288
288
|
type: {
|
|
289
289
|
minScore: { type: Number, default: 50 },
|
|
290
|
-
maxBounceRate: { type: Number, default:
|
|
291
|
-
maxConsecutiveErrors: { type: Number, default:
|
|
290
|
+
maxBounceRate: { type: Number, default: 0.1 },
|
|
291
|
+
maxConsecutiveErrors: { type: Number, default: 5 }
|
|
292
292
|
},
|
|
293
293
|
_id: false
|
|
294
294
|
}
|
|
@@ -2258,15 +2258,15 @@ function createAccountController(EmailAccount, capacityManager, healthTracker, w
|
|
|
2258
2258
|
smtp: input.smtp,
|
|
2259
2259
|
...input.imap ? { imap: input.imap } : {},
|
|
2260
2260
|
...input.ses ? { ses: input.ses } : {},
|
|
2261
|
-
limits: { dailyMax: input.limits?.dailyMax
|
|
2261
|
+
limits: { dailyMax: input.limits?.dailyMax ?? 50 },
|
|
2262
2262
|
health: {
|
|
2263
2263
|
score: 100,
|
|
2264
2264
|
consecutiveErrors: 0,
|
|
2265
2265
|
bounceCount: 0,
|
|
2266
2266
|
thresholds: {
|
|
2267
2267
|
minScore: input.health?.thresholds?.minScore ?? healthDefaults?.minScore ?? 50,
|
|
2268
|
-
maxBounceRate: input.health?.thresholds?.maxBounceRate ?? healthDefaults?.maxBounceRate ??
|
|
2269
|
-
maxConsecutiveErrors: input.health?.thresholds?.maxConsecutiveErrors ?? healthDefaults?.maxConsecutiveErrors ??
|
|
2268
|
+
maxBounceRate: input.health?.thresholds?.maxBounceRate ?? healthDefaults?.maxBounceRate ?? 0.1,
|
|
2269
|
+
maxConsecutiveErrors: input.health?.thresholds?.maxConsecutiveErrors ?? healthDefaults?.maxConsecutiveErrors ?? 5
|
|
2270
2270
|
}
|
|
2271
2271
|
},
|
|
2272
2272
|
warmup: {
|