Skip to content

Commit 2472825

Browse files
authored
Merge branch 'master' into fix/sort-events-alphabetically
2 parents 5ad6ab0 + 150724c commit 2472825

File tree

4 files changed

+79
-25
lines changed

4 files changed

+79
-25
lines changed

CHANGELOG.md

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
1-
## Version 25.03.X
1+
## Version 25.03.xx
2+
Fixes:
3+
- [mail] Add smtp debug option for mail module
4+
5+
Enterprise Fixes:
6+
- [users] Fixed uploading user profile pictures
7+
- [funnels] Show notification if funnel results are from cache/task manager
8+
- [block] Fixed filter for consent events
9+
10+
11+
## Version 25.03.22
212
Fixes:
313
- [alerts] Fix: Migrate alerts to the new events model
4-
- [oidc] Fix for session state storage
514
- [applications] Persist newly created app after page reload
615
- [dashboard] Allow users to select text inside the widget without dragging it
16+
- [oidc] Fix for session state storage
717

818
Enterprise Fixes:
9-
- [users] Update user custom field number formatting
10-
- [users] Fix condition for custom property update
11-
- [drill] [survey] Fix duplicate question id
19+
- [cohorts] Fix query transformation for profile group
1220
- [drill] [survey] Display survey answer value instead of id in drill result
13-
- [cohorts] Fix query transformation for chr
21+
- [drill] [survey] Fix duplicate question id
22+
- [users] Fix condition for custom property update
23+
- [users] Update user custom field number formatting
1424

25+
Dependencies:
26+
- Bump axios from 1.8.2 to 1.12.2 in /plugins/hooks
27+
- Bump tar-fs from 3.1.0 to 3.1.1
28+
- Bump nodemailer from 7.0.6 to 7.0.9
29+
- Bump fs-extra from 11.3.1 to 11.3.2
30+
- Bump sharp from 0.34.3 to 0.34.4
31+
- Bump eslint-plugin-vue from 10.4.0 to 10.5.0
32+
- Bump sass from 1.92.1 to 1.93.2
33+
- Bump lint-staged from 16.1.6 to 16.2.3
34+
- Bump puppeteer from 24.20.0 to 24.23.0
35+
- Bump mongodb from 6.19.0 to 6.20.0
36+
- Bump typescript from 5.9.2 to 5.9.3
37+
- Bump semver from 7.7.2 to 7.7.3
1538

1639
## Version 25.03.21
1740
Fixes:

api/parts/mgmt/mail.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,38 @@ var mail = {},
1111
versionInfo = require('../../../frontend/express/version.info'),
1212
authorize = require('../../utils/authorizer'),
1313
config = require('../../config'),
14+
log = require('../../utils/log.js')('mail'),
15+
util = require('node:util'),
1416
ip = require('./ip.js');
1517

18+
const smtpLogger = {};
19+
20+
// Set up logger wrapper
21+
for (let level of ['trace', 'debug', 'info', 'warn', 'error', 'fatal']) {
22+
smtpLogger[level] = (data, message, ...args) => {
23+
if (args && args.length) {
24+
message = util.format(message, ...args);
25+
}
26+
if (level === 'error' || level === 'fatal') {
27+
log.e(message, data || '');
28+
}
29+
else if (level === 'warn') {
30+
log.w(message, data || '');
31+
}
32+
else if (level === 'info') {
33+
log.i(message, data || '');
34+
}
35+
else {
36+
log.d(message, data || '');
37+
}
38+
};
39+
}
40+
41+
if (config.mail && config.mail.config) {
42+
config.mail.config.logger = smtpLogger;
43+
config.mail.config.debug = true;
44+
}
45+
1646
if (config.mail && config.mail.transport && config.mail.transport !== "nodemailer-smtp-transport") {
1747
mail.smtpTransport = nodemailer.createTransport(require(config.mail.transport)(config.mail.config));
1848
}
@@ -23,7 +53,8 @@ else {
2353
mail.smtpTransport = nodemailer.createTransport({
2454
sendmail: true,
2555
newline: 'unix',
26-
path: '/usr/sbin/sendmail'
56+
path: '/usr/sbin/sendmail',
57+
logger: smtpLogger
2758
});
2859
}
2960

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@
8585
"method-override": "3.0.0",
8686
"moment": "2.30.1",
8787
"moment-timezone": "0.6.0",
88-
"mongodb": "6.19.0",
88+
"mongodb": "6.20.0",
8989
"nginx-conf": "2.1.0",
90-
"nodemailer": "7.0.7",
90+
"nodemailer": "7.0.9",
9191
"object-hash": "3.0.0",
9292
"offline-geocoder": "git+https://github.com/Countly/offline-geocoder.git",
9393
"properties-parser": "0.6.0",

0 commit comments

Comments
 (0)